Cogl.Onscreen.new
function new(context: Cogl.Context, width: Number(gint), height: Number(gint)): Cogl.Onscreen { // Gjs wrapper for cogl_onscreen_new() }
Instantiates an "unallocated" Cogl.Onscreen framebuffer that may be configured before later being allocated, either implicitly when it is first used or explicitly via Cogl.Framebuffer.prototype.allocate.
Since 1.8
- context
- width
The desired framebuffer width
- height
The desired framebuffer height
- Returns
A newly instantiated Cogl.Onscreen framebuffer