Use the winapi crate instead of our own ffi

This commit is contained in:
Pierre Krieger 2014-12-01 18:24:15 +01:00
parent cfe4564688
commit 3cf487ac70
8 changed files with 351 additions and 1078 deletions

26
src/win32/gl.rs Normal file
View file

@ -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 {}