Class description The viewport-state controls the rectangular region of the framebuffer to which window-space coordinates are mapped. Window-space vertices are mapped from the rectangle <-1.0, -1.0><1.0, 1.0> to the rectangular region specified by the rect slot.