Struct client::GameContext
[−]
[src]
pub struct GameContext { // some fields omitted }
Methods
impl GameContext
[src]
fn new(facade: GlutinFacade, config: Config) -> Self
fn get_facade(&self) -> &GlutinFacade
fn get_config(&self) -> &Config
fn load_program(&self, shader: &str) -> Result<Program, Box<Error>>
Loads vertex and fragment shader automatically to prevent recompiling the application everytime a shader is changed.
Trait Implementations
impl Clone for GameContext
[src]
fn clone(&self) -> GameContext
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more