Add a utility to make a GSource out of a CoglContext

The GSource is created using cogl_glib_source_new which takes a
pointer to a CoglContext. The source calls cogl_poll_get_info() in its
prepare function and cogl_poll_dispatch() in its dispatch
function. The poll FDs on the source are updated according to what
Cogl reports.

The header is only included and the source only compiled if Cogl is
configured with GLib support.

Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
Neil Roberts
2011-12-19 14:38:28 +00:00
parent 181b875a3d
commit 85d79ab4fa
5 changed files with 264 additions and 0 deletions

View File

@ -174,6 +174,7 @@ CoglPollFDEvent
CoglPollFD
cogl_poll_get_info
cogl_poll_dispatch
cogl_glib_source_new
</SECTION>
<SECTION>