diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-12-01 18:24:15 +0100 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-12-02 14:58:20 +0100 |
commit | 3cf487ac70c50d8e0a0720af843145d28ce4f1c7 (patch) | |
tree | 1ab1ca60bed4d0cc32e13e5b041d22aaf81f1cfc /src/win32/gl.rs | |
parent | cfe456468882503c232aa91f48c778e8d0caba34 (diff) | |
download | glutin-3cf487ac70c50d8e0a0720af843145d28ce4f1c7.tar.gz glutin-3cf487ac70c50d8e0a0720af843145d28ce4f1c7.zip |
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 {} |