From 3cf487ac70c50d8e0a0720af843145d28ce4f1c7 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Mon, 1 Dec 2014 18:24:15 +0100 Subject: Use the winapi crate instead of our own ffi --- src/win32/gl.rs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/win32/gl.rs (limited to 'src/win32/gl.rs') 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 {} -- cgit v1.2.3