mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
Use the winapi crate instead of our own ffi
This commit is contained in:
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 {}
|
||||
Reference in New Issue
Block a user