Rename crate to glutin

This commit is contained in:
Tomaka17 2014-09-21 11:33:09 +02:00
parent 3ac5f6d115
commit 02ba9d33d7
6 changed files with 19 additions and 19 deletions

View file

@ -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>>();
}
}