Function
Coglglib_renderer_source_new
since: 14
Declaration [src]
GSource*
cogl_glib_renderer_source_new (
CoglRenderer* renderer,
int priority
)
Description [src]
Creates a GSource 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 GSource should be attached to the main loop using g_source_attach().
Available since: 14
Parameters
renderer-
Type:
CoglRendererA
CoglRenderer.The data is owned by the caller of the function. priority-
Type:
intThe priority of the
GSource.
Return value
Type: GSource
A new GSource.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |