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

Methods

impl<'a> Context<'a>
[src]

Creates a new context given the path for the keyboard configuration and the sdl renderer

Trait Implementations

impl<'a> Drop for Context<'a>
[src]

A method called when the value goes out of scope. Read more