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

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]

[src]

Create a new window with default parameters.

[src]

Create new Builder with standard parameters.

[src]

update method returns false if the window was closed.

[src]

Render the current scene with specific Camera.

[src]

Get current window size in pixels.

[src]

Sets how the cursor should be handled.

See the documentation for CursorState for the possible cursor states.

Note that if you use CursorState::Grab, you should use Input::mouse_delta_raw for detecting mouse movement, as Input::mouse_delta will only report movement of the cursor within the window.

[src]

Returns underlaying glutin::GlWindow.

Trait Implementations

Auto Trait Implementations

impl !Send for Window

impl !Sync for Window