Cogl.Context.new

function new(display: Cogl.Display): Cogl.Context {
    // Gjs wrapper for cogl_context_new()
}
  

Creates a new Cogl.Context which acts as an application sandbox for any state objects that are allocated.

Since 1.8

display

A Cogl.Display pointer

Returns

A newly allocated Cogl.Context