Struct piston::input::RenderArgs
[−]
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
fn viewport(&self) -> Viewport
Returns viewport information filling entire render area.