Struct amethyst::Application
[−]
[src]
pub struct Application<'a, 'b> { pub engine: Engine, // some fields omitted }
User-friendly facade for building games. Manages main loop.
Fields
engine: Engine
The engine
struct, holding world and thread pool.
Methods
impl<'a, 'b> Application<'a, 'b>
[src]
fn new<S: State + 'a>(initial_state: S) -> Result<Application<'a, 'b>>
[src]
Creates a new Application with the given initial game state.
fn build<S>(initial_state: S) -> Result<ApplicationBuilder<'a, 'b, S>> where
S: State + 'a,
[src]
S: State + 'a,
Builds a new Application with the given settings.
fn run(&mut self)
[src]
Starts the application and manages the game loop.