Struct input::RenderArgs [] [src]

pub struct RenderArgs {
    pub ext_dt: f64,
    pub width: u32,
    pub height: u32,
    pub draw_width: u32,
    pub draw_height: u32,
}

Render arguments

Fields

ext_dt: f64

Extrapolated time in seconds, used to do smooth animation.

width: u32

The width of rendered area in points.

height: u32

The height of rendered area in points.

draw_width: u32

The width of rendered area in pixels.

draw_height: u32

The height of rendered area in pixels.

Methods

impl RenderArgs
[src]

fn viewport(&self) -> Viewport

Returns viewport information filling entire render area.

Trait Implementations

impl Debug for RenderArgs
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl PartialEq for RenderArgs
[src]

fn eq(&self, __arg_0: &RenderArgs) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &RenderArgs) -> bool

This method tests for !=.

impl Clone for RenderArgs
[src]

fn clone(&self) -> RenderArgs

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for RenderArgs
[src]