Struct glium_pib::WindowConfig
[−]
[src]
pub struct WindowConfig { pub display: Display, pub surface_size: Option<(u32, u32)>, pub red: ColorBits, pub green: ColorBits, pub blue: ColorBits, pub alpha: Option<ColorBits>, pub depth: Option<DepthBits>, }
Window configuration.
Fields
display: Display
The display to use.
surface_size: Option<(u32, u32)>
The size of the surface to render to. If none, the size of the display is used.
red: ColorBits
Number of bits per pixel used for the red channel.
green: ColorBits
Number of bits per pixel used for the green channel.
blue: ColorBits
Number of bits per pixel used for the blue channel.
alpha: Option<ColorBits>
Number of bits per pixel used for the alpha channel.
depth: Option<DepthBits>
Number of bits per pixel used for the depth buffer.
Trait Implementations
impl Copy for WindowConfig
[src]
impl Clone for WindowConfig
[src]
fn clone(&self) -> WindowConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for WindowConfig
[src]
fn default() -> WindowConfig
Returns the "default value" for a type. Read more