diff options
author | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-10-21 08:11:08 +0200 |
---|---|---|
committer | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-10-21 08:11:08 +0200 |
commit | 0d0c14e6ecc3137fd1d12c389e03e6f312f1f207 (patch) | |
tree | ddd6776e350bb3d6cfd44badef5ece0acaec40f5 /src | |
parent | 6d34ef7a3dc0febb7fcade34801236ea61090bbf (diff) | |
download | glutin-0d0c14e6ecc3137fd1d12c389e03e6f312f1f207.tar.gz glutin-0d0c14e6ecc3137fd1d12c389e03e6f312f1f207.zip |
Update for gl-rs
Diffstat (limited to 'src')
-rw-r--r-- | src/android/ffi.rs | 7 | ||||
-rw-r--r-- | src/win32/ffi.rs | 17 | ||||
-rw-r--r-- | src/x11/ffi.rs | 17 |
3 files changed, 36 insertions, 5 deletions
diff --git a/src/android/ffi.rs b/src/android/ffi.rs index a7482e3..78ef070 100644 --- a/src/android/ffi.rs +++ b/src/android/ffi.rs @@ -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; diff --git a/src/win32/ffi.rs b/src/win32/ffi.rs index 2385954..5662a98 100644 --- a/src/win32/ffi.rs +++ b/src/win32/ffi.rs @@ -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 diff --git a/src/x11/ffi.rs b/src/x11/ffi.rs index 39a6ae5..f6a0a3b 100644 --- a/src/x11/ffi.rs +++ b/src/x11/ffi.rs @@ -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; |