setViewportSize

fun setViewportSize(width: Int, height: Int)

Sets size of viewport expressed in pixels. Notice that OpenGL uses normalized coordinates between -1.0f and 1.0f.

Parameters

width

width of viewport expressed in pixels.

height

height of viewport expressed in pixels.

Throws

if either provided width or height is negative.