Rename crate folders to remove raidillon prefix

This commit is contained in:
reo 2025-08-17 21:14:59 +03:00
parent 176ea52ab0
commit 3458662cfc
29 changed files with 31 additions and 28 deletions

1779
platform/Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

9
platform/Cargo.toml Normal file
View file

@ -0,0 +1,9 @@
[package]
name = "raidillon_platform"
version = "0.1.0"
edition = "2024"
[dependencies]
winit = "0.30.12"
raidillon_core = { path = "../core" }
raidillon_assets = { path = "../assets" }

7
platform/src/context.rs Normal file
View file

@ -0,0 +1,7 @@
use winit::event::Event;
use raidillon_assets::{ModelManagerRef, ModelManager};
pub struct PlatformContext {
pub current_event: Event<()>,
pub asset_manager: ModelManagerRef,
}

11
platform/src/event.rs Normal file
View file

@ -0,0 +1,11 @@
pub enum PlatformEvent {
/// Emmited when the window should
RedrawRequested,
/// The platform has requested to close the app.
CloseRequested,
/// Platform event loop is about to block and wait for new
/// new events.
AboutToWait
}

5
platform/src/lib.rs Normal file
View file

@ -0,0 +1,5 @@
pub mod platform;
pub mod context;
pub use context::PlatformContext;
pub use platform::Platform;

8
platform/src/platform.rs Normal file
View file

@ -0,0 +1,8 @@
use raidillon_assets::ModelManager;
use raidillon_core::Engine;
pub trait Platform {
/// Initialize platform.
fn initialize(engine: Engine, title: String, width: u32, height: u32) -> Self;
fn run(self);
}