mutter/examples
Neil Roberts 6731569c18 Update all of the examples to use cogl_poll_get_info
The aim is that it should be a requirement that all Cogl applications
hook their mainloops into Cogl so we should lead by examples. Most of
the examples now just call cogl_poll_get_info and then g_poll with a
zero timeout so that they can continue to constantly redraw.

The SDL example is a bit special because SDL makes it very difficult
to wait on either a timeout or any file descriptors. The SDL winsys is
documented not to require blocking on any file descriptors so we can
ignore that. It implements the timeout by adding an SDL timer which
pushes an event to the queue to wake up SDL_GetEvent.

The Cogland example was already using the glib main loop so that one
has been updated to add the CoglGLibSource to it.

Reviewed-by: Robert Bragg <robert@linux.intel.com>
2012-01-05 13:41:00 +00:00
..
android/hello android: Update the hello example to the latest glib-android API change 2011-08-12 17:24:19 +01:00
cogl-crate.c Update all of the examples to use cogl_poll_get_info 2012-01-05 13:41:00 +00:00
cogl-hello.c Update all of the examples to use cogl_poll_get_info 2012-01-05 13:41:00 +00:00
cogl-info.c tests: Adds a really simple cogl-info program 2011-11-01 12:03:02 +00:00
cogl-msaa.c Update all of the examples to use cogl_poll_get_info 2012-01-05 13:41:00 +00:00
cogl-sdl-hello.c Update all of the examples to use cogl_poll_get_info 2012-01-05 13:41:00 +00:00
cogl-x11-foreign.c Update all of the examples to use cogl_poll_get_info 2012-01-05 13:41:00 +00:00
cogl-x11-tfp.c Remove inclusion of Xlib headers in Cogl headers 2011-11-01 15:55:53 +00:00
cogland.c Update all of the examples to use cogl_poll_get_info 2012-01-05 13:41:00 +00:00
crate.jpg Adds another example that draws a 3D crate 2011-06-30 14:33:11 +01:00
Makefile.am Add an example combining SDL and Cogl 2011-12-14 16:45:24 +00:00