Viewport

constructor(x: Int, y: Int, width: Int, height: Int)


constructor()

Constructs an empty viewport width X, Y, width and height all zero.


constructor(viewport: Viewport)

Constructs a viewport with the origin and dimensions of a specified viewport.

Parameters

viewport

the viewport specifying the values