spitfire_glow::app

Trait AppState

Source
pub trait AppState<V: GlowVertexAttribs> {
    // Provided methods
    fn on_init(&mut self, graphics: &mut Graphics<V>) { ... }
    fn on_redraw(&mut self, graphics: &mut Graphics<V>) { ... }
    fn on_event(&mut self, event: Event<'_, ()>, window: &mut Window) -> bool { ... }
}

Provided Methods§

Source

fn on_init(&mut self, graphics: &mut Graphics<V>)

Source

fn on_redraw(&mut self, graphics: &mut Graphics<V>)

Source

fn on_event(&mut self, event: Event<'_, ()>, window: &mut Window) -> bool

Implementors§