Struct crayon::application::Engine [] [src]

pub struct Engine {
    pub events_loop: EventsLoop,
    pub input: InputSystem,
    pub window: Arc<Window>,
    pub graphics: GraphicsSystem,
    pub resource: ResourceSystem,
    pub time: TimeSystem,
    // some fields omitted
}

Engine is the root object of the game application. It binds various sub-systems in a central place and takes take of trivial tasks like the execution order or life-time management.

Fields

Methods

impl Engine
[src]

[src]

Constructs a new, empty engine.

[src]

Setup engine with specified settings.

[src]

[src]

Run the main loop of Engine, this will block the working thread until we finished.