Struct three::window::Window

source ·
pub struct Window {
    pub input: Input,
    pub renderer: Renderer,
    pub factory: Factory,
    pub scene: Scene,
    pub reset_input: bool,
    /* private fields */
}
Expand description

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

It provides user input, Factory and Renderer.

Fields

input: Input

See Input.

renderer: Renderer

See Renderer.

factory: Factory

See Factory.

scene: Scene

See Scene.

reset_input: bool

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

Defaults to true.

Implementations

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

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Sets value as a parameter of self.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.