Cogl.Framebuffer.prototype.get_viewport4fv
function get_viewport4fv(): Array(Number(gfloat)) { // Gjs wrapper for cogl_framebuffer_get_viewport4fv() }
Queries the x, y, width and height components of the current viewport as set using Cogl.Framebuffer.prototype.set_viewport or the default values which are 0, 0, framebuffer_width and framebuffer_height. The values are written into the given @viewport array.
Since 1.8
- Returns
A pointer to an array of 4 floats to receive the (x, y, width, height) components of the current viewport.