Skip to content

Function: toGLRect() ​

ts
function toGLRect(rect, canvasHeight, out?): ViewportRect;

Experimental

Convert a top-left-origin rect to GL's bottom-left origin (still CSS px).

Parameters ​

ParameterType
rectReadonly<ViewportRect>
canvasHeightnumber
outViewportRect

Returns ​

ViewportRect

Released under the MIT License.