diff options
Diffstat (limited to 'src/win32')
-rw-r--r-- | src/win32/ffi.rs | 17 | ||||
-rw-r--r-- | src/win32/init.rs | 2 | ||||
-rw-r--r-- | src/win32/mod.rs | 10 |
3 files changed, 21 insertions, 8 deletions
diff --git a/src/win32/ffi.rs b/src/win32/ffi.rs index 2385954..317935d 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/win32/init.rs b/src/win32/init.rs index bb3f53b..36bf639 100644 --- a/src/win32/init.rs +++ b/src/win32/init.rs @@ -2,7 +2,7 @@ extern crate native; use self::native::NativeTaskBuilder; use std::task::TaskBuilder; -use std::sync::atomics::AtomicBool; +use std::sync::atomic::AtomicBool; use std::ptr; use super::{event, ffi}; use super::Window; diff --git a/src/win32/mod.rs b/src/win32/mod.rs index 8be3fdb..c3da891 100644 --- a/src/win32/mod.rs +++ b/src/win32/mod.rs @@ -1,4 +1,4 @@ -use std::sync::atomics::AtomicBool; +use std::sync::atomic::AtomicBool; use std::ptr; use Event; @@ -75,7 +75,7 @@ impl Window { impl Window { /// See the docs in the crate root file. pub fn is_closed(&self) -> bool { - use std::sync::atomics::Relaxed; + use std::sync::atomic::Relaxed; self.is_closed.load(Relaxed) } @@ -170,7 +170,7 @@ impl Window { // if one of the received events is `Closed`, setting `is_closed` to true if events.iter().find(|e| match e { &&::Closed => true, _ => false }).is_some() { - use std::sync::atomics::Relaxed; + use std::sync::atomic::Relaxed; self.is_closed.store(true, Relaxed); } @@ -185,7 +185,7 @@ impl Window { // if the received event is `Closed`, setting `is_closed` to true match ev { ::Closed => { - use std::sync::atomics::Relaxed; + use std::sync::atomic::Relaxed; self.is_closed.store(true, Relaxed); }, _ => () @@ -198,7 +198,7 @@ impl Window { }, Err(_) => { - use std::sync::atomics::Relaxed; + use std::sync::atomic::Relaxed; self.is_closed.store(true, Relaxed); vec![] } |