pub struct Conf {
    pub cache: Cache,
    pub loading: Loading,
    pub window_title: String,
    pub window_width: i32,
    pub window_height: i32,
    pub high_dpi: bool,
    pub fullscreen: bool,
    pub sample_count: i32,
}

Fields

cache: Cacheloading: Loadingwindow_title: String

Title of the window, defaults to an empty string.

window_width: i32

The preferred width of the window, ignored on wasm/android.

Default: 800

window_height: i32

The preferred height of the window, ignored on wasm/android.

Default: 600

high_dpi: bool

Whether the rendering canvas is full-resolution on HighDPI displays.

Default: false

fullscreen: bool

Whether the window should be created in fullscreen mode, ignored on wasm/android.

Default: false

sample_count: i32

MSAA sample count

Default: 1

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.