raidillon/platform/src/platform.rs
reo 15122b8ebd 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
2025-09-07 17:00:04 +03:00

9 lines
270 B
Rust

use raidillon_assets::ModelManager;
use raidillon_core::engine::EngineTrait;
use crate::PlatformContext;
pub trait Platform<E: EngineTrait> {
/// Initialize platform.
fn initialize(engine: E, title: String, width: u32, height: u32) -> Self;
fn run(self);
}