aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11/ffi.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-10-22 11:28:10 +0200
committertomaka <pierre.krieger1708@gmail.com>2014-10-22 11:28:10 +0200
commit2a29e4d743205e96da611516f5fe99da78e462d1 (patch)
tree0c44986d2c2db6a27dee94a3a9c9d6a8385ec9c6 /src/x11/ffi.rs
parentc8ea2bf587429b5b59d5a41f7ebb16a7998badd9 (diff)
parent2ff393fe623d10f2ea89262013ba66e228cc0c94 (diff)
downloadglutin-2a29e4d743205e96da611516f5fe99da78e462d1.tar.gz
glutin-2a29e4d743205e96da611516f5fe99da78e462d1.zip
Merge pull request #59 from tomaka/update
Update for rustc and gl-rs
Diffstat (limited to 'src/x11/ffi.rs')
-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..822f755 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;