Remove imgui from the entire project
This commit is contained in:
parent
306774c15b
commit
13aefcc86f
12 changed files with 16 additions and 125 deletions
|
|
@ -3,7 +3,7 @@ use std::rc::Rc;
|
|||
use raidillon_core::scene::{Scene, SceneManager};
|
||||
use crate::system::{SystemContext, SystemManager};
|
||||
use raidillon_platform::PlatformContext;
|
||||
use raidillon_core::{define_typemap, DebugUIBuffer};
|
||||
use raidillon_core::{define_typemap};
|
||||
use raidillon_core::engine::EngineTrait;
|
||||
use crate::input::InputState;
|
||||
use crate::resources::EngineResources;
|
||||
|
|
@ -50,7 +50,6 @@ impl EngineTrait for Engine {
|
|||
|
||||
/// Update the engine
|
||||
fn frame_update(&mut self, platform_context: PlatformContext) {
|
||||
self.scene_manager.current_mut().resources.get_mut::<DebugUIBuffer>().unwrap().reset_buffer();
|
||||
self.resources.insert(platform_context);
|
||||
|
||||
for system in self.system_manager.systems.values_mut() {
|
||||
|
|
@ -86,12 +85,4 @@ impl EngineTrait for Engine {
|
|||
fn current_scene(&self) -> &Scene {
|
||||
self.scene_manager.current()
|
||||
}
|
||||
|
||||
fn get_debug_ui_buffer(&self) -> &DebugUIBuffer {
|
||||
self.scene_manager.current().resources.get::<DebugUIBuffer>().unwrap()
|
||||
}
|
||||
|
||||
fn reset_debug_ui_buffer(&mut self) {
|
||||
self.scene_manager.current_mut().resources.get_mut::<DebugUIBuffer>().unwrap().reset_buffer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
use indexmap::IndexMap;
|
||||
use raidillon_core::scene::Scene;
|
||||
use raidillon_core::DebugUIBuffer;
|
||||
use raidillon_platform::PlatformContext;
|
||||
use std::any::TypeId;
|
||||
use std::cell::RefCell;
|
||||
|
|
@ -11,7 +10,6 @@ use crate::resources::EngineResources;
|
|||
pub struct SystemContext<'a> {
|
||||
pub scene: &'a mut Scene,
|
||||
pub platform_context: PlatformContext,
|
||||
pub debug_ui_buffer: Rc<RefCell<DebugUIBuffer>>,
|
||||
pub input_state: Rc<RefCell<InputState>>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue