6731569c18
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> |
||
---|---|---|
.. | ||
android/hello | ||
cogl-crate.c | ||
cogl-hello.c | ||
cogl-info.c | ||
cogl-msaa.c | ||
cogl-sdl-hello.c | ||
cogl-x11-foreign.c | ||
cogl-x11-tfp.c | ||
cogland.c | ||
crate.jpg | ||
Makefile.am |