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 DisplayConfig
pub fn to_windowbuilder(self, el: EventsLoop) -> WindowBuilder
[src]
pub fn to_windowbuilder(self, el: EventsLoop) -> WindowBuilder
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]
impl Clone for DisplayConfig
fn clone(&self) -> DisplayConfig
[src]
fn clone(&self) -> DisplayConfig
Returns 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 DisplayConfig
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for DisplayConfig
[src]
impl Eq for DisplayConfig
impl PartialEq for DisplayConfig
[src]
impl PartialEq for DisplayConfig
fn eq(&self, other: &DisplayConfig) -> bool
[src]
fn eq(&self, other: &DisplayConfig) -> bool
This 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) -> bool
This method tests for !=
.
impl Default for DisplayConfig
[src]
impl Default for DisplayConfig
impl From<WindowBuilder> for DisplayConfig
[src]
impl From<WindowBuilder> for DisplayConfig
fn from(wb: WindowBuilder) -> Self
[src]
fn from(wb: WindowBuilder) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for DisplayConfig
impl Send for DisplayConfig
impl Sync for DisplayConfig
impl Sync for DisplayConfig