diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/render-bsp/Cargo.toml | 1 | ||||
-rw-r--r-- | examples/render-bsp/src/main.rs | 25 |
2 files changed, 14 insertions, 12 deletions
diff --git a/examples/render-bsp/Cargo.toml b/examples/render-bsp/Cargo.toml index 666f035..b8b5a9d 100644 --- a/examples/render-bsp/Cargo.toml +++ b/examples/render-bsp/Cargo.toml @@ -8,5 +8,6 @@ stockton-render = { path = "../../stockton-render", features = ["vulkan"] } stockton-types = { path = "../../stockton-types" } stockton-levels = { path = "../../stockton-levels" } winit = "^0.21" +log = "0.4.0" simple_logger = "1.0" image = "0.23.2" diff --git a/examples/render-bsp/src/main.rs b/examples/render-bsp/src/main.rs index 51fc80f..0d81759 100644 --- a/examples/render-bsp/src/main.rs +++ b/examples/render-bsp/src/main.rs @@ -19,6 +19,7 @@ extern crate stockton_types; extern crate stockton_levels; extern crate stockton_render; extern crate winit; +extern crate log; extern crate simple_logger; extern crate image; @@ -93,7 +94,7 @@ impl KeyState { } fn main() { - simple_logger::init().unwrap(); + simple_logger::init_with_level(log::Level::Debug).unwrap(); // Load the world and renderer let event_loop = EventLoop::new(); @@ -112,17 +113,17 @@ fn main() { let world = World::new(bsp); let mut renderer = Renderer::new(world, &window).unwrap(); - { - renderer.context.add_texture( - load_from_memory(include_bytes!("../../render-quad/data/test1.png")) - .expect("Couldn't load test texture 1") - .into_rgba()).unwrap(); - - renderer.context.add_texture( - load_from_memory(include_bytes!("../../render-quad/data/test2.png")) - .expect("Couldn't load test texture 2") - .into_rgba()).unwrap(); - } + // { + // renderer.context.add_texture( + // load_from_memory(include_bytes!("../../render-quad/data/test1.png")) + // .expect("Couldn't load test texture 1") + // .into_rgba()).unwrap(); + + // renderer.context.add_texture( + // load_from_memory(include_bytes!("../../render-quad/data/test2.png")) + // .expect("Couldn't load test texture 2") + // .into_rgba()).unwrap(); + // } let mut last_update = SystemTime::now(); let mut key_state = KeyState::new(); |