Queries the x, y, width and height components of the current viewport as set using set_viewport or the default values which are 0, 0, framebuffer_width and framebuffer_height.
The values are written into the given viewport
array.
this | |
viewport |
A pointer to an array of 4 floats to receive the (x, y, width, height) components of the current viewport. |