width

var width: Int

Width of the viewport expressed in pixels. Notice that OpenGL uses normalized coordinates between -1.0f and 1.0f, but this field contains the actual viewport width expressed in pixels.

Throws

if provided value is negative.