mutter/examples
Robert Bragg df51574116 onscreen: Adds support for resizable windows
This adds api to be able to request that the window system allows a
given onscreen framebuffer to be resizable, and api to add and remove
resize handlers to be called whenever the framebuffer does actually
change size.

The new functions are:
  cogl_onscreen_{get,set}_resizable()
  cogl_onscreen_{add,remove}_resize_handler()

The examples cogl-hello and cogl-x11-foreign have been updated to use
the new api. To smoke test how Cogl updates the viewport automatically
in response to window resizes the cogl-hello test doesn't explicitly
respond to resize events by setting the viewport and cogl-x11-foreign
responds by setting a viewport that is offset by a quarter of the
window's width/height and half the width and height of the window.

Reviewed-by: Neil Roberts <neil@linux.intel.com>

(cherry picked from commit a1a8cc00bfa2cecaf1007aec5f3dd95dc07b1786)
2012-08-06 18:51:32 +01: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 Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
cogl-gles2-context.c Adds gles2-context renderer constraint 2012-08-06 14:27:43 +01:00
cogl-gles2-gears.c Adds gles2-context renderer constraint 2012-08-06 14:27:43 +01:00
cogl-hello.c onscreen: Adds support for resizable windows 2012-08-06 18:51:32 +01:00
cogl-info.c Adds initial GLES2 integration support 2012-08-06 14:27:42 +01:00
cogl-msaa.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
cogl-sdl2-hello.c Add an SDL2 winsys 2012-08-06 14:27:44 +01:00
cogl-sdl-hello.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
cogl-x11-foreign.c onscreen: Adds support for resizable windows 2012-08-06 18:51:32 +01:00
cogl-x11-tfp.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
cogland.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
crate.jpg Adds another example that draws a 3D crate 2011-06-30 14:33:11 +01:00
Makefile.am Add an SDL2 winsys 2012-08-06 14:27:44 +01:00