Class Viewport
Hierarchy
- Viewport
Index
Constructors
constructor
-
Creates a Viewport object located at (x, y) and sized (width, height)
Parameters
-
x: number
defines viewport left coordinate
-
y: number
defines viewport top coordinate
-
width: number
defines the viewport width
-
height: number
defines the viewport height
Returns Viewport
-
Properties
heightSearch playground for height
viewport height
widthSearch playground for width
viewport width
xSearch playground for x
viewport left coordinate
ySearch playground for y
viewport top coordinate
Methods
cloneSearch playground for clone
-
Returns a new Viewport copied from the current one
Returns Viewport
a new Viewport
to GlobalSearch playground for toGlobal
-
Creates a new viewport using absolute sizing (from 0-> width, 0-> height instead of 0->1)
Parameters
-
renderWidth: number
defines the rendering width
-
renderHeight: number
defines the rendering height
Returns Viewport
a new Viewport
-
Class used to represent a viewport on screen