diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:23 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:23 +0100 |
commit | fb996488aa651cb2e7f46abc083c4318b47e77cd (patch) | |
tree | d1513d479b6069abca290e271f439cd1ef553383 /examples | |
parent | a82e16c92a026b2fbe3a40a21d7e690242e32ba6 (diff) |
wip refactor(render): more work on draw passes
Diffstat (limited to 'examples')
-rw-r--r-- | examples/render-bsp/src/main.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/render-bsp/src/main.rs b/examples/render-bsp/src/main.rs index a3cea25..73475c0 100644 --- a/examples/render-bsp/src/main.rs +++ b/examples/render-bsp/src/main.rs @@ -94,13 +94,13 @@ fn try_main() -> Result<()> { window.set_cursor_visible(false); // TODO: Parse the map file - let bsp = todo!(); + let map = todo!(); // Create the UI State let mut ui = UiState::new(); // Create the renderer - let (renderer, tx) = Renderer::new(&window, &mut ui, bsp)?; + let (renderer, tx) = Renderer::new(&window)?; let new_control_flow = renderer.update_control_flow.clone(); // Populate the initial UI state @@ -127,7 +127,7 @@ fn try_main() -> Result<()> { let mut session = Session::new( move |resources| { resources.insert(ui); - resources.insert(renderer); + resources.insert(map); resources.insert(manager); resources.insert(Timing::default()); resources.insert(Mouse::default()); @@ -139,9 +139,7 @@ fn try_main() -> Result<()> { .flush() .add_system(hello_world_system()) .add_system(flycam_move_system::<MovementInputsManager>()) - .flush() - .add_system(calc_vp_matrix_system::<MapFile>()) - .add_thread_local(do_render_system::<MapFile>()); + .flush(); }, ); |