Struct gg::game::Game
[−]
[src]
pub struct Game<T, M> where M: SceneManager<T> {
// some fields omitted
}
The game object, you give it your initial State and start it off
Methods
impl<T, M> Game<T, M> where M: SceneManager<T>
fn new(state: T, mgr: M, disp: GlutinFacade) -> Game<T, M>
Creates a new game you can start!
fn kickoff(self)
Consumes the game and starts the display loop, once there are no more scenes or the window is closed this method returns.