8 lines
265 B
Rust
8 lines
265 B
Rust
use crate::PlatformContext;
|
|
use raidillon_core::engine::EngineTrait;
|
|
|
|
pub trait Platform<E: EngineTrait<PlatformCtx = PlatformContext>> {
|
|
/// Initialize platform.
|
|
fn initialize(engine: E, title: String, width: u32, height: u32) -> Self;
|
|
fn run(self);
|
|
}
|