wip: Changes of the week

- Move engine to a different crate
- Add engine trait
- Refactor the rest of the codebase to work with these changes
- Add debug ui buffer, use it to finish imgui support
This commit is contained in:
reo 2025-09-07 17:00:04 +03:00
parent 3fd5b09a94
commit 15122b8ebd
20 changed files with 344 additions and 117 deletions

View file

@ -1,16 +1,11 @@
use std::cell::RefCell;
use std::rc::Rc;
use std::sync::Arc;
use winit::event::Event;
use raidillon_assets::{ModelManagerRef, ModelManager};
// TODO: Find a way to move this to raidillon_platform as it belongs there.
// TODO: The name "Context" doesn't imply the wide role of this structure.
/// This provides a bridge between the game logic systems (raidillon_core::System) and
/// platform-related data/utilities.
#[derive(Clone)]
pub struct PlatformContext {
/// The latest winit event.
pub current_event: Event<()>,
pub asset_manager: ModelManagerRef,
pub frame_width: f32,