Struct ggez::Context [] [src]

pub struct Context<'a> {
    pub sdl_context: Sdl,
    pub ttf_context: Sdl2TtfContext,
    pub mixer_context: Sdl2MixerContext,
    pub renderer: Renderer<'a>,
    pub filesystem: Filesystem,
    pub gfx_context: GraphicsContext,
    pub event_context: EventSubsystem,
    pub timer_context: TimeContext,
    // some fields omitted
}

A Context holds all the state needed to interface with the hardware. Only one Context can exist at a time.

Fields

Methods

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

Tries to create a new Context using settings from the given config file.

Prints out information on the sound subsystem.

Prints out information on the resources subsystem.

Triggers a Quit event. BUGGO: This actually doesn't work 'cause we can't push non-user event types for some reason! See https://github.com/AngryLawyer/rust-sdl2/issues/530 :-(

Trait Implementations

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

Formats the value using the given formatter.