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§
sourcefn render<'pass, 'others>(
&'others mut self,
render_handle: RenderInformation<'pass, 'others>
)where
'others: 'pass,
fn render<'pass, 'others>(
&'others mut self,
render_handle: RenderInformation<'pass, 'others>
)where
'others: 'pass,
Rendering code goes here