pub fn update(&mut self, w: u32, h: u32) {
        self.w = w as f32;
        self.h = h as f32;
        self.aspect_ratio = w as f32 / h as f32;
        self.dirty = true;
    }
/// Updates the width and height of the screen and recomputes the aspect
/// ratio.
///
/// Only use this if you need to programmatically set the resolution of your game.
/// This resource is updated automatically by the engine when a resize occurs so you don't need
/// this unless you want to resize the game window.
Updates the width and height of the screen and recomputes the aspect
ratio.

Only use this if you need to programmatically set the resolution of your game.
This resource is updated automatically by the engine when a resize occurs so you don't need
this unless you want to resize the game window.
Updates the width and height of the screen and recomputes the aspect ratio . Only use this if you need to programmatically set the resolution of your game . This resource is updated automatically by the engine when a resize occurs so you don ' t need this unless you want to resize the game window .
pub fn update(&mut self, w: u32, h: u32) {
        self.w = w as f32;
        self.h = h as f32;
        self.aspect_ratio = w as f32 / h as f32;
        self.dirty = true;
    }
pub fn update ( & mut self , w : u32 , h : u32 ) { self . w = w as f32 ; self . h = h as f32 ; self . aspect_ratio = w as f32 / h as f32 ; self . dirty = true ; }
Updates the width and height of the screen and recomputes the aspect
ratio.
Updates the width and height of the screen and recomputes the aspect ratio .
&mut self
w
u32
h
u32
&mut self
w
u32
h
u32