glib_renderer_source_new


Description:

public Source glib_renderer_source_new (Renderer renderer, int priority)

Creates a SignalSource which handles Cogl's internal system event processing.

This can be used as a convenience instead of poll_renderer_get_info and poll_renderer_dispatch in applications that are already using the GLib main loop. After this is called the SignalSource should be attached to the main loop using attach.

Parameters:

renderer

A Renderer

priority

The priority of the SignalSource

Returns:

a new SignalSource


Namespace: Cogl
Package: doc