Struct amethyst_renderer::DisplayConfig[][src]

pub struct DisplayConfig {
    pub title: String,
    pub fullscreen: bool,
    pub dimensions: Option<(u32, u32)>,
    pub min_dimensions: Option<(u32, u32)>,
    pub max_dimensions: Option<(u32, u32)>,
    pub vsync: bool,
    pub multisampling: u16,
    pub visibility: bool,
}

Structure for holding the renderer configuration.

Fields

Name of the application window.

Enables or disables fullscreen mode.

Current window dimensions, measured in pixels (px).

Minimum window dimensions, measured in pixels (px).

Maximum window dimensions, measured in pixels (px).

Enables or disables vertical synchronization.

Level of MSAA anti-aliasing.

Sets the visibility of the window.

Methods

impl DisplayConfig
[src]

Creates a winit::WindowBuilder using the values set in the DisplayConfig

The EventsLoop is needed to configure a fullscreen window

Trait Implementations

impl Clone for DisplayConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for DisplayConfig
[src]

Formats the value using the given formatter. Read more

impl Eq for DisplayConfig
[src]

impl PartialEq for DisplayConfig
[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 DisplayConfig
[src]

Returns the "default value" for a type. Read more

impl From<WindowBuilder> for DisplayConfig
[src]

Performs the conversion.

Auto Trait Implementations