From d9f3675b3a8ce0545b2413691c81adef3fa786ce Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Sun, 13 Dec 2020 11:02:21 +0700 Subject: [PATCH] Update to glium 0.28, glutin 0.25 and winit 0.23 Tested only on x86_64-unknown-linux-gnu. WebAssembly support is still broken and needs porting from emcripten to stdweb. --- Cargo.toml | 12 ++++++------ main.rs | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e683780..2ba6d27 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,15 +15,15 @@ opt-level = 3 [dependencies] cgmath = "*" #gleam = "*" -glium = "0.27" -glutin = "0.24" +glium = "0.28" +glutin = "0.25" +winit = { version = "0.23", features = ["stdweb"] } image = { version = "*", features = ["png_codec"], optional = true } instant = "*" libxm = "1.0.0" rust-rocket = { path = "rust-rocket", optional = true } rand = "*" sdl2 = "*" -winit = { version = "*", features = ["stdweb"] } [features] default = ["image", "logging"] @@ -35,9 +35,9 @@ editor = ["rust-rocket"] #"glutin:0.7.4" = { path = "/home/bernie/src/glutin" } #"glium:0.16.0" = { path = "/home/bernie/src/glium" } -[target.armv7-linux-androideabi] -ar = "$ANDROID_NDK_HOME/arm/bin/arm-linux-androideabi-ar" -linker = "$ANDROID_NDK_HOME/arm/bin/arm-linux-androideabi-clang" +#[target.armv7-linux-androideabi] +#ar = "$ANDROID_NDK_HOME/arm/bin/arm-linux-androideabi-ar" +#linker = "$ANDROID_NDK_HOME/arm/bin/arm-linux-androideabi-clang" [lib] name = "mandelwow_lib" diff --git a/main.rs b/main.rs index 3b07180..9d2563c 100644 --- a/main.rs +++ b/main.rs @@ -249,7 +249,7 @@ fn main() { emscripten_GetProcAddress(addr.into_raw() as *const _) as *const _ }); gl.glGetInternalformativ(0, 0, 0, 0, 0); -*/ + */ let mut soundplayer = sound::start(); @@ -274,7 +274,7 @@ fn main() { let mut timer = Timer::new(); let mut camera = support::camera::CameraState::new(); - let mut fullscreen = true; + let mut fullscreen = false; event_loop.run(move |event, _, control_flow| { let t = timer.t; @@ -315,9 +315,9 @@ fn main() { VirtualKeyCode::F11 | VirtualKeyCode::Return => { fullscreen ^= true; let fs = if fullscreen { - let monitor_handle = display.gl_window().window() - .available_monitors().next().unwrap(); - Some(glium::glutin::window::Fullscreen::Borderless(monitor_handle)) + // let monitor_handle = display.gl_window().window() + // .available_monitors().next().unwrap(); + Some(glium::glutin::window::Fullscreen::Borderless(None)) } else { None }; -- 2.25.1