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.
Methods
impl DisplayConfig[src]
impl DisplayConfigpub fn to_windowbuilder(self, el: EventsLoop) -> WindowBuilder[src]
pub fn to_windowbuilder(self, el: EventsLoop) -> WindowBuilderCreates 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]
impl Clone for DisplayConfigfn clone(&self) -> DisplayConfig[src]
fn clone(&self) -> DisplayConfigReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for DisplayConfig[src]
impl Debug for DisplayConfigfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for DisplayConfig[src]
impl Eq for DisplayConfigimpl PartialEq for DisplayConfig[src]
impl PartialEq for DisplayConfigfn eq(&self, other: &DisplayConfig) -> bool[src]
fn eq(&self, other: &DisplayConfig) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &DisplayConfig) -> bool[src]
fn ne(&self, other: &DisplayConfig) -> boolThis method tests for !=.
impl Default for DisplayConfig[src]
impl Default for DisplayConfigimpl From<WindowBuilder> for DisplayConfig[src]
impl From<WindowBuilder> for DisplayConfigAuto Trait Implementations
impl Send for DisplayConfig
impl Send for DisplayConfigimpl Sync for DisplayConfig
impl Sync for DisplayConfig