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
title: String
Name of the application window.
fullscreen: bool
Enables or disables fullscreen mode.
dimensions: Option<(u32, u32)>
Current window dimensions, measured in pixels (px).
min_dimensions: Option<(u32, u32)>
Minimum window dimensions, measured in pixels (px).
max_dimensions: Option<(u32, u32)>
Maximum window dimensions, measured in pixels (px).
vsync: bool
Enables or disables vertical synchronization.
multisampling: u16
Level of MSAA anti-aliasing.
visibility: bool
Sets the visibility of the window.
Trait Implementations
impl Clone for DisplayConfig
[src]
fn clone(&self) -> DisplayConfig
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for DisplayConfig
[src]
impl Eq for DisplayConfig
[src]
impl PartialEq for DisplayConfig
[src]
fn eq(&self, __arg_0: &DisplayConfig) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DisplayConfig) -> bool
[src]
This method tests for !=
.
impl Default for DisplayConfig
[src]
impl From<WindowBuilder> for DisplayConfig
[src]
fn from(wb: WindowBuilder) -> Self
[src]
Performs the conversion.