Rename crate folders to remove raidillon prefix
This commit is contained in:
parent
176ea52ab0
commit
3458662cfc
29 changed files with 31 additions and 28 deletions
7
platform/src/context.rs
Normal file
7
platform/src/context.rs
Normal 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
11
platform/src/event.rs
Normal 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
5
platform/src/lib.rs
Normal 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
8
platform/src/platform.rs
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue