aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-10-21 08:11:08 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-10-21 08:11:08 +0200
commit0d0c14e6ecc3137fd1d12c389e03e6f312f1f207 (patch)
treeddd6776e350bb3d6cfd44badef5ece0acaec40f5 /src/x11
parent6d34ef7a3dc0febb7fcade34801236ea61090bbf (diff)
downloadglutin-0d0c14e6ecc3137fd1d12c389e03e6f312f1f207.tar.gz
glutin-0d0c14e6ecc3137fd1d12c389e03e6f312f1f207.zip
Update for gl-rs
Diffstat (limited to 'src/x11')
-rw-r--r--src/x11/ffi.rs17
1 files changed, 15 insertions, 2 deletions
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;