diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2014-12-03 08:25:02 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2014-12-03 08:25:02 +0100 |
commit | c6f5b4a107109c7c900b5e56adb036a5e55e667b (patch) | |
tree | 57085dc0026f41848c59457af781550c36003448 /src/win32/gl.rs | |
parent | 6652cd0bdfa8c8db90ed01afaccad40f17228c43 (diff) | |
parent | 3cf487ac70c50d8e0a0720af843145d28ce4f1c7 (diff) | |
download | glutin-c6f5b4a107109c7c900b5e56adb036a5e55e667b.tar.gz glutin-c6f5b4a107109c7c900b5e56adb036a5e55e667b.zip |
Merge pull request #150 from tomaka/winapi
Use the winapi crate instead of our own ffi
Diffstat (limited to 'src/win32/gl.rs')
-rw-r--r-- | src/win32/gl.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/win32/gl.rs b/src/win32/gl.rs new file mode 100644 index 0000000..a44af77 --- /dev/null +++ b/src/win32/gl.rs @@ -0,0 +1,26 @@ +/// WGL bindings +pub mod wgl { + generate_gl_bindings! { + api: "wgl", + profile: "core", + version: "1.0", + generator: "static" + } +} + +/// Functions that are not necessarly always available +pub mod wgl_extra { + generate_gl_bindings! { + api: "wgl", + profile: "core", + version: "1.0", + generator: "struct", + extensions: [ + "WGL_ARB_create_context", + "WGL_EXT_swap_control" + ] + } +} + +#[link(name = "opengl32")] +extern {} |