Struct ggez::ContextBuilder [−][src]
pub struct ContextBuilder { /* fields omitted */ }
Expand description
A builder object for creating a Context
.
Implementations
Create a new ContextBuilder
with default settings.
Sets the window setup settings.
Sets the window mode settings.
Sets the modules configuration.
Sets all the config options, overriding any previous
ones from window_setup()
,
window_mode()
, and
backend()
. These are used as
defaults and are overridden by any external config
file found.
Add a new read-only filesystem path to the places to search for resources.
Add a new zip file from bytes whose contents will be searched
for resources. The zip file will be stored in-memory.
You can pass it a static slice, a Vec
of bytes, etc.
use ggez::context::ContextBuilder; let _ = ContextBuilder::new() .add_zipfile_bytes(include_bytes!("../resources.zip").to_vec()) .build();
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.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ContextBuilder
impl Send for ContextBuilder
impl Sync for ContextBuilder
impl Unpin for ContextBuilder
impl UnwindSafe for ContextBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V