pub fn new(w: u32, h: u32, hidpi: f32) -> ScreenDimensions {
        ScreenDimensions {
            w: w as f32,
            h: h as f32,
            aspect_ratio: w as f32 / h as f32,
            hidpi,
            dirty: false,
        }
    }
/// Creates a new screen dimensions object with the given width and height.
Creates a new screen dimensions object with the given width and height.
Creates a new screen dimensions object with the given width and height .
pub fn new(w: u32, h: u32, hidpi: f32) -> ScreenDimensions {
        ScreenDimensions {
            w: w as f32,
            h: h as f32,
            aspect_ratio: w as f32 / h as f32,
            hidpi,
            dirty: false,
        }
    }
pub fn new ( w : u32 , h : u32 , hidpi : f32 ) -> ScreenDimensions { ScreenDimensions { w : w as f32 , h : h as f32 , aspect_ratio : w as f32 / h as f32 , hidpi , dirty : false , } }
Creates a new screen dimensions object with the given width and height.
Creates a new screen dimensions object with the given width and height .
w
u32
h
u32
hidpi
f32
w
u32
h
u32
hidpi
f32