[][src]Trait geng_core::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 + ?Sized> State for Box<T>[src]

Loading content...

Implementors

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
    L: ProgressScreen,
    G: State
[src]

Loading content...