mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
Update for gl_generator's changes
This commit is contained in:
@@ -17,12 +17,7 @@ pub mod egl {
|
||||
pub type NativePixmapType = super::EGLNativePixmapType;
|
||||
pub type NativeWindowType = super::EGLNativeWindowType;
|
||||
|
||||
generate_gl_bindings! {
|
||||
api: "egl",
|
||||
profile: "core",
|
||||
version: "1.5",
|
||||
generator: "static"
|
||||
}
|
||||
include!(concat!(env!("OUT_DIR"), "/egl_bindings.rs"));
|
||||
}
|
||||
|
||||
pub type khronos_utime_nanoseconds_t = khronos_uint64_t;
|
||||
|
||||
@@ -1,25 +1,11 @@
|
||||
/// WGL bindings
|
||||
pub mod wgl {
|
||||
generate_gl_bindings! {
|
||||
api: "wgl",
|
||||
profile: "core",
|
||||
version: "1.0",
|
||||
generator: "static"
|
||||
}
|
||||
include!(concat!(env!("OUT_DIR"), "/wgl_bindings.rs"));
|
||||
}
|
||||
|
||||
/// 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"
|
||||
]
|
||||
}
|
||||
include!(concat!(env!("OUT_DIR"), "/wgl_extra_bindings.rs"));
|
||||
}
|
||||
|
||||
#[link(name = "opengl32")]
|
||||
|
||||
@@ -8,25 +8,12 @@ use libc;
|
||||
|
||||
/// GLX bindings
|
||||
pub mod glx {
|
||||
generate_gl_bindings! {
|
||||
api: "glx",
|
||||
profile: "core",
|
||||
version: "1.4",
|
||||
generator: "static"
|
||||
}
|
||||
include!(concat!(env!("OUT_DIR"), "/glx_bindings.rs"));
|
||||
}
|
||||
|
||||
/// Functions that are not necessarly always available
|
||||
pub mod glx_extra {
|
||||
generate_gl_bindings! {
|
||||
api: "glx",
|
||||
profile: "core",
|
||||
version: "1.4",
|
||||
generator: "struct",
|
||||
extensions: [
|
||||
"GLX_ARB_create_context"
|
||||
]
|
||||
}
|
||||
include!(concat!(env!("OUT_DIR"), "/glx_extra_bindings.rs"));
|
||||
}
|
||||
|
||||
pub type Atom = libc::c_ulong;
|
||||
|
||||
Reference in New Issue
Block a user