Struct ggez::conf::Conf[][src]

pub struct Conf {
    pub window_mode: WindowMode,
    pub window_setup: WindowSetup,
    pub backend: Backend,
}

A structure containing configuration data for the game engine.

Defaults:

This example is not tested
Conf {
    window_mode: WindowMode::default(),
    window_setup: WindowSetup::default(),
    backend: Backend::OpenGL(3, 2),
}

Fields

Window setting information that can be set at runtime

Window setting information that must be set at init-time

Backend configuration

Methods

impl Conf
[src]

Same as Conf::default()

Load a TOML file from the given Read and attempts to parse a Conf from it.

Saves the Conf to the given Write object, formatted as TOML.

Trait Implementations

impl Debug for Conf
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Conf
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for Conf
[src]

Return Conf { window_mode: Default::default(), window_setup: Default::default(), backend: Default::default() }

Auto Trait Implementations

impl Send for Conf

impl Sync for Conf