X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=main.rs;h=9500a78962bd3c411db067a8d491f758f9be3648;hb=d3f9906bc53b97fc955cc2babde3fe7b7e09d64b;hp=49b28b12a4c705159ffafcc57fcf246e092a12a8;hpb=b505362bf6e4fc1bba7bb817a970462cf2e6011d;p=mandelwow.git diff --git a/main.rs b/main.rs index 49b28b1..9500a78 100644 --- a/main.rs +++ b/main.rs @@ -70,10 +70,11 @@ pub fn set_main_loop_callback(callback : F) where F : FnMut() -> support::Act } fn main() { - let _soundplayer = sound::start(); + let mut soundplayer = sound::start(); let display = glutin::WindowBuilder::new() .with_dimensions(1280, 720) + .with_gl_profile(glutin::GlProfile::Core) //.with_fullscreen(glutin::get_primary_monitor()) .with_depth_buffer(24) .with_vsync() @@ -133,6 +134,7 @@ fn main() { let mut accum_idle_time = Duration::new(0, 0); set_main_loop_callback(|| { + let _ = sound::hit_event(&mut soundplayer); camera.update(); let perspview = camera.get_perspview();