Struct amethyst::Application
[−]
[src]
pub struct Application { /* fields omitted */ }
User-friendly facade for building games. Manages main loop.
Methods
impl Application
[src]
fn new<T>(
initial_state: T,
planner: Planner<()>,
cfg: DisplayConfig
) -> Application where
T: State + 'static,
initial_state: T,
planner: Planner<()>,
cfg: DisplayConfig
) -> Application where
T: State + 'static,
Creates a new Application with the given initial game state, planner, and display configuration.
fn build<T>(initial_state: T, cfg: DisplayConfig) -> ApplicationBuilder<T> where
T: State + 'static,
T: State + 'static,
Builds a new application using builder pattern.
fn run(&mut self)
Starts the application and manages the game loop.