aboutsummaryrefslogtreecommitdiffstats
path: root/examples/multiwindow.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-09-22 09:53:36 +0200
committertomaka <pierre.krieger1708@gmail.com>2014-09-22 09:53:36 +0200
commit07734275139d2e2abd0b800f9fd53871ffa88ceb (patch)
treeb413bb12605c28ad91502bd5c2218e844d433965 /examples/multiwindow.rs
parent795d04c123312a623306d1ddfa24f2becaa4bae3 (diff)
parent02ba9d33d75b6bb723f3d3f8d7090136956e4317 (diff)
downloadglutin-07734275139d2e2abd0b800f9fd53871ffa88ceb.tar.gz
glutin-07734275139d2e2abd0b800f9fd53871ffa88ceb.zip
Merge pull request #42 from tomaka/rename-glutin
Rename crate to glutin
Diffstat (limited to 'examples/multiwindow.rs')
-rw-r--r--examples/multiwindow.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/multiwindow.rs b/examples/multiwindow.rs
index 84af061..ad50312 100644
--- a/examples/multiwindow.rs
+++ b/examples/multiwindow.rs
@@ -5,7 +5,7 @@
#[phase(plugin, link)]
extern crate android_glue;
-extern crate gl_init;
+extern crate glutin;
mod support;
@@ -13,9 +13,9 @@ mod support;
android_start!(main)
fn main() {
- let window1 = gl_init::Window::new().unwrap();
- let window2 = gl_init::Window::new().unwrap();
- let window3 = gl_init::Window::new().unwrap();
+ let window1 = glutin::Window::new().unwrap();
+ let window2 = glutin::Window::new().unwrap();
+ let window3 = glutin::Window::new().unwrap();
spawn(proc() {
run(window1, (0.0, 1.0, 0.0, 1.0));
@@ -30,7 +30,7 @@ fn main() {
});
}
-fn run(window: gl_init::Window, color: (f32, f32, f32, f32)) {
+fn run(window: glutin::Window, color: (f32, f32, f32, f32)) {
unsafe { window.make_current() };
let context = support::load(&window);
@@ -39,6 +39,6 @@ fn run(window: gl_init::Window, color: (f32, f32, f32, f32)) {
context.draw_frame(color);
window.swap_buffers();
- window.wait_events().collect::<Vec<gl_init::Event>>();
+ window.wait_events().collect::<Vec<glutin::Event>>();
}
}