[][src]Struct three::window::Window

pub struct Window {
    pub input: Input,
    pub renderer: Renderer,
    pub factory: Factory,
    pub scene: Scene,
    pub reset_input: bool,
    // some fields omitted
}

Window is the core entity of every three-rs application.

It provides user input, Factory and Renderer.

Fields

See Input.

See Renderer.

See Factory.

See Scene.

Reset input on each frame? See Input::reset.

Defaults to true.

Methods

impl Window
[src]

Create a new window with default parameters.

Create new Builder with standard parameters.

update method returns false if the window was closed.

Render the current scene with specific Camera.

Get current window size in pixels.

Returns underlaying glutin::GlWindow.

Returns the current full screen mode.

Sets the full screen mode. If the window is already in full screen mode, does nothing.

Toggles the full screen mode. Returns the new actual mode.

Auto Trait Implementations

impl !Send for Window

impl !Sync for Window

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

Sets value as a parameter of self.

impl<T> Erased for T