mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Update for gl-rs
This commit is contained in:
parent
6d34ef7a3d
commit
0d0c14e6ec
|
@ -17,7 +17,12 @@ pub mod egl {
|
|||
pub type NativePixmapType = super::EGLNativePixmapType;
|
||||
pub type NativeWindowType = super::EGLNativeWindowType;
|
||||
|
||||
generate_gl_bindings!("egl", "core", "1.5", "static")
|
||||
generate_gl_bindings! {
|
||||
api: egl,
|
||||
profile: core,
|
||||
version: 1.5,
|
||||
generator: static
|
||||
}
|
||||
}
|
||||
|
||||
pub type khronos_utime_nanoseconds_t = khronos_uint64_t;
|
||||
|
|
|
@ -7,12 +7,25 @@ use libc;
|
|||
|
||||
/// WGL bindings
|
||||
pub mod wgl {
|
||||
generate_gl_bindings!("wgl", "core", "1.0", "static")
|
||||
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!("wgl", "core", "1.0", "struct", [ "WGL_ARB_create_context" ])
|
||||
generate_gl_bindings! {
|
||||
api: wgl,
|
||||
profile: core,
|
||||
version: 1.0,
|
||||
generator: struct,
|
||||
extensions: [
|
||||
WGL_ARB_create_context
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
// http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx
|
||||
|
|
|
@ -8,12 +8,25 @@ use libc;
|
|||
|
||||
/// GLX bindings
|
||||
pub mod glx {
|
||||
generate_gl_bindings!("glx", "core", "1.4", "static")
|
||||
generate_gl_bindings! {
|
||||
api: glx,
|
||||
profile: core,
|
||||
version: 1.4,
|
||||
generator: static
|
||||
}
|
||||
}
|
||||
|
||||
/// Functions that are not necessarly always available
|
||||
pub mod glx_extra {
|
||||
generate_gl_bindings!("glx", "core", "1.4", "struct", [ "GLX_ARB_create_context" ])
|
||||
generate_gl_bindings! {
|
||||
api: glx,
|
||||
profile: core,
|
||||
version: 1.4,
|
||||
generator: struct,
|
||||
extensions: [
|
||||
GLX_ARB_create_context
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
pub type Atom = libc::c_ulong;
|
||||
|
|
Loading…
Reference in a new issue