aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-12-26 08:22:14 +0100
committertomaka <pierre.krieger1708@gmail.com>2014-12-26 08:22:14 +0100
commitfce4f0a1298d216b928ccdb25f8e481397981afe (patch)
tree3d5d5ac66cc29ad3091111d7c7ccf1f467a02821
parent4bcdbce22259bbd247ef8ddc4573344256002086 (diff)
parent9a5f02984d3c157c962f493c981d1f8e7bd4ac81 (diff)
downloadglutin-fce4f0a1298d216b928ccdb25f8e481397981afe.tar.gz
glutin-fce4f0a1298d216b928ccdb25f8e481397981afe.zip
Merge pull request #172 from ozkriff/master
Removed 'extern crate gl_generator' and implemented 'poll_events'
-rw-r--r--src/android/mod.rs17
-rw-r--r--src/lib.rs2
2 files changed, 7 insertions, 12 deletions
diff --git a/src/android/mod.rs b/src/android/mod.rs
index 3a86779..7279f99 100644
--- a/src/android/mod.rs
+++ b/src/android/mod.rs
@@ -212,16 +212,6 @@ impl Window {
}
pub fn poll_events(&self) -> Vec<Event> {
- use std::time::Duration;
- use std::io::timer;
- timer::sleep(Duration::milliseconds(16));
- Vec::new()
- }
-
- pub fn wait_events(&self) -> Vec<Event> {
- use std::time::Duration;
- use std::io::timer;
- timer::sleep(Duration::milliseconds(16));
let mut events = Vec::new();
loop {
match self.event_rx.try_recv() {
@@ -244,6 +234,13 @@ impl Window {
events
}
+ pub fn wait_events(&self) -> Vec<Event> {
+ use std::time::Duration;
+ use std::io::timer;
+ timer::sleep(Duration::milliseconds(16));
+ self.poll_events()
+ }
+
pub fn make_current(&self) {
unsafe {
ffi::egl::MakeCurrent(self.display, self.surface, self.surface, self.context);
diff --git a/src/lib.rs b/src/lib.rs
index a1c0a28..6a736cd 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -28,8 +28,6 @@
//!
//! By default only `window` is enabled.
-#[phase(plugin)] extern crate gl_generator;
-
extern crate gl_common;
extern crate libc;