Update for gl_generator's changes

This commit is contained in:
Pierre Krieger 2014-12-24 08:09:16 +01:00
parent a04668e850
commit 7f6f4f8d04
7 changed files with 79 additions and 57 deletions

View file

@ -8,25 +8,12 @@ use libc;
/// GLX bindings
pub mod glx {
generate_gl_bindings! {
api: "glx",
profile: "core",
version: "1.4",
generator: "static"
}
include!(concat!(env!("OUT_DIR"), "/glx_bindings.rs"));
}
/// Functions that are not necessarly always available
pub mod glx_extra {
generate_gl_bindings! {
api: "glx",
profile: "core",
version: "1.4",
generator: "struct",
extensions: [
"GLX_ARB_create_context"
]
}
include!(concat!(env!("OUT_DIR"), "/glx_extra_bindings.rs"));
}
pub type Atom = libc::c_ulong;