Initial implementation of imgui support

This commit is contained in:
reo 2025-09-06 11:52:49 +03:00
parent 1a200e62ef
commit 3fd5b09a94
6 changed files with 95 additions and 4 deletions

View file

@ -14,6 +14,7 @@ use winit::event::{Event, WindowEvent};
use raidillon_assets::{ModelManager, ModelManagerRef};
use raidillon_core::Engine;
use crate::{GliumAssetManager};
use crate::render::debug_ui::ImguiBridge;
use crate::render::BasicMeshRenderingSystem;
pub const MESH_RENDERER: &str = "mesh_renderer";
@ -25,6 +26,7 @@ pub struct GliumPlatform {
rendering_system_manager: RenderingSystemManager,
asset_manager: ModelManagerRef,
engine: Engine,
imgui_bridge: ImguiBridge,
}
impl Platform for GliumPlatform {
@ -47,13 +49,16 @@ impl Platform for GliumPlatform {
Box::new(BasicMeshRenderingSystem::initialize(&display))
);
let imgui_bridge = ImguiBridge::new(&display, &window).unwrap();
Self {
event_loop,
window,
display,
rendering_system_manager,
asset_manager,
engine
engine,
imgui_bridge,
}
}