From 0d0c14e6ecc3137fd1d12c389e03e6f312f1f207 Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Tue, 21 Oct 2014 08:11:08 +0200 Subject: Update for gl-rs --- src/x11/ffi.rs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/x11') 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; -- cgit v1.2.3