Trait State
youxi::engine
pub trait State { fn on_start(&mut self); fn on_event(&mut self, window: &mut Window, events: &mut EventsLoop); fn on_update(&mut self, elapsed: u128, window: &mut Window); fn on_stop(&mut self); }
fn on_start(&mut self)
fn on_event(&mut self, window: &mut Window, events: &mut EventsLoop)
fn on_update(&mut self, elapsed: u128, window: &mut Window)
fn on_stop(&mut self)