Viewport

Description

class Viewport

Constructor

new Viewport(x, y, width, height)

Creates a Viewport object located at (x, y) and sized (width, height).

Parameters

Name Type Description
x number
y number
width number

Members

x : number

y : number

width : number

height : number

Methods

toGlobal(renderWidthOrEngine, Engine, renderHeight) Viewport

Parameters

Name Type Description
renderWidthOrEngine number or Engine
renderHeight number

clone() Viewport

Returns a new Viewport copied from the current one.