Struct three_d::FrameInput[][src]

pub struct FrameInput {
    pub events: Vec<Event>,
    pub elapsed_time: f64,
    pub accumulated_time: f64,
    pub viewport: Viewport,
    pub window_width: usize,
    pub window_height: usize,
    pub device_pixel_ratio: usize,
    pub first_frame: bool,
}

Input from the window to the rendering (and whatever else needs it) each frame.

Fields

events: Vec<Event>

A list of events which has occurred since last frame.

elapsed_time: f64

Milliseconds since last frame.

accumulated_time: f64

Milliseconds accumulated time since start.

viewport: Viewport

Viewport of the window in physical pixels (the size of the screen).

window_width: usize

Width of the window in logical pixels.

window_height: usize

Height of the window in logical pixels.

device_pixel_ratio: usize

Number of physical pixels for each logical pixel.

first_frame: bool

Whether or not this is the first frame.

Trait Implementations

impl Clone for FrameInput[src]

impl Debug for FrameInput[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.