set

fun set(x: Int, y: Int, width: Int, height: Int): Viewport

Sets this viewport to the specified origin and dimensions.

Return

this viewport set to the specified values

Parameters

x

the new X component of the viewport's lower left corner

y

the new Y component of the viewport's lower left corner

width

the viewport's new width

height

the viewport's new height