Logo


search API (or start typing anywhere)


Runtime

snow.core.Runtime defined in ``


class
meta: @:allow(snow.Snow)


 

Members


app
app : snow.Snow

name
name : String

Methods


window_device_pixel_ratio
window_device_pixel_ratio() : Float
Get the device pixel ratio (scaling factor for high resolution/high dpi/retina devices)

window_fullscreen

window_fullscreen(enable:Bool, true_fullscreen:Bool) : Bool
Set the main window to fullscreen. returns false if it fails or is unavailable.

window_grab

window_grab(enable:Bool) : Bool
Grabs the main window, capturing the mouse and returning relative motion. i.e What a first person camera might want to rotate freely. returns false if it fails or is unavailable.

window_height

window_height() : Int
Get the height of the render surface of the window (i.e post-device-scale)

window_width

window_width() : Int
Get the width of the render surface of the window (i.e post-device-scale)