Function

Coglglib_renderer_source_new

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().

Parameters

renderer

Type: CoglRenderer

A CoglRenderer.

The data is owned by the caller of the function.
priority

Type: int

The 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.