Use the winapi crate instead of our own ffi
This commit is contained in:
parent
cfe4564688
commit
3cf487ac70
8 changed files with 351 additions and 1078 deletions
26
src/win32/gl.rs
Normal file
26
src/win32/gl.rs
Normal 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 {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue