Screen

Functions

Screen_ViewportSize( void ) : Float2
Returns the size of the application viewport in points as (width, height).

Screen_ViewportWidth( void ) : float
Returns the width of the application viewport in points.

Screen_ViewportHeight( void ) : float
Returns the height of the application viewport in points.

Screen_ViewportSize( void ) : Float2
Returns the size of the application viewport buffer in pixels as (width, height).

Screen_ViewportWidth( void ) : float
Returns the width of the application viewport buffer in pixels.

Screen_ViewportHeight( void ) : float
Returns the height of the application viewport buffer in pixels.

Screen_ViewportScale( void ) : float
Returns the pixel density of the viewport.

Screen_ViewportRenderParams( void ) : Float4
Returns the rendering params of the application viewport in pixels as (1.0/width, 1.0/height, width, height).

Screen_ViewportAspectRatio( void ) : float
Returns the aspect ratio of the viewport (width / height).

Screen_ViewportAspectRatio( void ) : float
Returns the inverse aspect ratio of the viewport (height / width).

Screen_ViewportPointToUIPoint( Float2 point) : Float2
Converts the viewport coordinate to ui coordinates. Viewport coordinates range from (0,0) in the upper left, to (width,height) in the lower right. UI coordinates range from (-width/2, -height/2) in the upper left to (width/2, height/2) in the lower right.

Screen_IsFullscreen( void ) : bool
Returns if the viewport is currently in fullscreen mode. NOTE: always true until windowing support is added.