Cogl.glib_renderer_source_new
function glib_renderer_source_new(renderer: Cogl.Renderer, priority: Number(gint)): GLib.Source { // Gjs wrapper for cogl_glib_renderer_source_new() }
Creates a GLib.Source which handles Cogl's internal system event processing. This can be used as a convenience instead of Cogl.poll_renderer_get_info and Cogl.poll_renderer_dispatch in applications that are already using the GLib main loop. After this is called the GLib.Source should be attached to the main loop using g_source_attach().
Since 1.16
- renderer
- priority
The priority of the GLib.Source
- Returns
a new GLib.Source