20 lines
462 B
Rust
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,
|
|
}
|