[][src]Trait geng::State

pub trait State: 'static {
    fn draw(&mut self, framebuffer: &mut Framebuffer<'_>);

    fn update(&mut self, delta_time: f64) { ... }
fn handle_event(&mut self, event: Event) { ... }
fn transition(&mut self) -> Option<Transition> { ... } }

Required methods

fn draw(&mut self, framebuffer: &mut Framebuffer<'_>)

Loading content...

Provided methods

fn update(&mut self, delta_time: f64)

fn handle_event(&mut self, event: Event)

fn transition(&mut self) -> Option<Transition>

Loading content...

Implementations on Foreign Types

impl<T> State for Box<T> where
    T: State + ?Sized
[src]

Loading content...

Implementors

impl State for DebugOverlay[src]

impl State for EmptyLoadingScreen[src]

impl State for EmptyState[src]

impl State for StateManager[src]

impl<T, L, G> State for LoadingScreen<T, L, G> where
    G: State,
    L: ProgressScreen
[src]

Loading content...