Struct ggez::ContextBuilder[][src]

pub struct ContextBuilder { /* fields omitted */ }

A builder object for creating a context.

Can do everything the Context::load_from_conf() method does, plus you can also specify new paths to add to the resource path list at build time instead of using filesystem::mount().

Methods

impl ContextBuilder
[src]

Create a new ContextBuilder

Sets the window setup settings

Sets the window mode settings

Sets the graphics backend

Add a new read-only filesystem path to the places to search for resources.

Specifies whether or not to load the conf.toml file if it exists and use its settings to override the provided values. Defaults to true which is usually what you want, but being able to fiddle with it is sometimes useful for debugging.

Build the Context.

Trait Implementations

impl Debug for ContextBuilder
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations