raidillon/platform/src/context.rs
reo 46c8c32819 Huge input update, FPS Camera controls system
Long day. I now store winit:🪟:Window in a mutex.
2025-09-28 01:31:14 +03:00

20 lines
462 B
Rust

use std::sync::{Arc, Mutex};
use winit::event::Event;
use raidillon_assets::ModelManagerRef;
#[derive(Clone)]
pub struct PlatformContext {
pub current_event: Event<()>,
pub asset_manager: ModelManagerRef,
pub frame_width: f32,
pub frame_height: f32,
pub time_ctx: TimeContext,
pub window: Arc<Mutex<winit::window::Window>>,
}
#[derive(Clone)]
pub struct TimeContext {
pub frame_dt: f32,
pub fixed_dt: f32,
pub alpha: f32,
}