Struct mold2d::context::Context
[−]
[src]
pub struct Context<'a> { pub events: Events, pub renderer: Renderer<'a>, pub window: Window, pub score: Score, }
Contains the main context variables for the game like the renderer and the events triggered
Fields
events: Events
renderer: Renderer<'a>
window: Window
score: Score
Methods
impl<'a> Context<'a>
[src]
fn new(window: Window, events: Events, renderer: Renderer<'a>) -> Context<'a>
Creates a new context given the path for the keyboard configuration and the sdl renderer