Struct three::window::Builder
[−]
[src]
pub struct Builder { /* fields omitted */ }
Builder for creating new Window
with desired parameters.
Methods
impl Builder
[src]
fn dimensions(&mut self, width: u32, height: u32) -> &mut Self
[src]
Set the size of the viewport (the resolution) in pixels. Defaults to 1024x768.
fn fullscreen(&mut self, option: bool) -> &mut Self
[src]
Whether enable fullscreen mode or not. Defauls to false
.
fn multisampling(&mut self, option: u16) -> &mut Self
[src]
Sets the multisampling level to request. A value of 0
indicates that multisampling must
not be enabled. Must be the power of 2. Defaults to 0
.
fn shader_directory<P: Into<PathBuf>>(&mut self, option: P) -> &mut Self
[src]
Specifies the user shader directory.
fn vsync(&mut self, option: bool) -> &mut Self
[src]
Whether to enable vertical synchronization or not. Defaults to true
.
fn build(&mut self) -> Window
[src]
Create new Window
with desired parameters.