Trait bottomless_pit::Game

source ·
pub trait Game {
    // Required methods
    fn render<'pass, 'others>(
        &'others mut self,
        render_handle: RenderInformation<'pass, 'others>
    )
       where 'others: 'pass;
    fn update(&mut self, engine_handle: &mut Engine);

    // Provided method
    fn on_close(&self) { ... }
}
Expand description

The Trait needed for structs to be used in with the Engine

Required Methods§

source

fn render<'pass, 'others>( &'others mut self, render_handle: RenderInformation<'pass, 'others> )
where 'others: 'pass,

Rendering code goes here

source

fn update(&mut self, engine_handle: &mut Engine)

Updating code goes here

Provided Methods§

source

fn on_close(&self)

Things to do when the window closes

Implementors§