mutter/examples
Robert Bragg afbb13e1a4 Add compiler deprecation warnings
This adds compiler symbol deprecation declarations for old Cogl APIs so
that users can easily see via compiler warning when they are using these
symbols, and also see a hint for what the apis should be replaced with.

So that users of Cogl can manage when to show these warnings this
introduces a scheme borrowed from glib whereby you can declare what
version of the Cogl api you are using:

COGL_VERSION_MIN_REQUIRED can be defined to indicate the oldest Cogl api
that the application wants to use. Cogl will only warn about
deprecations for symbols that were deprecated earlier than this required
version. If this is left undefined then by default Cogl will warn about
all deprecations.

COGL_VERSION_MAX_ALLOWED can be defined to indicate the newest api
that the application uses. If the application uses symbols newer than
this then Cogl will give a warning about that.

This patch removes the need to maintain the COGL_DISABLE_DEPRECATED
guards around deprecated symbols.

This patch fixes a few uses of deprecated symbols in the examples/

Reviewed-by: Neil Roberts <neil@linux.intel.com>
2013-04-24 22:23:50 +01:00
..
android/hello examples: Fix the first colour in the triangle_vertices 2013-04-22 13:01:45 +01:00
cogl-crate.c Add compiler deprecation warnings 2013-04-24 22:23:50 +01:00
cogl-gles2-context.c examples: Fix the first colour in the triangle_vertices 2013-04-22 13:01:45 +01:00
cogl-gles2-gears.c Fix a warning about ‘sincos’ in examples/cogl-gles2-gears 2013-04-23 18:30:54 +01:00
cogl-hello.c examples: Fix the first colour in the triangle_vertices 2013-04-22 13:01:45 +01:00
cogl-info.c renderer: expose CoglOutputs 2013-01-30 19:57:22 +00:00
cogl-msaa.c examples: Fix the first colour in the triangle_vertices 2013-04-22 13:01:45 +01:00
cogl-sdl2-hello.c examples: Fix the first colour in the triangle_vertices 2013-04-22 13:01:45 +01:00
cogl-sdl-hello.c examples: Fix the first colour in the triangle_vertices 2013-04-22 13:01:45 +01:00
cogl-x11-foreign.c examples: Fix the first colour in the triangle_vertices 2013-04-22 13:01:45 +01:00
cogl-x11-tfp.c Adds CoglError api 2013-01-22 17:47:39 +00:00
cogland.c Add compiler deprecation warnings 2013-04-24 22:23:50 +01:00
crate.jpg Adds another example that draws a 3D crate 2011-06-30 14:33:11 +01:00
Makefile.am Add $(LIBM) to the LDADD for all of the examples and tests 2013-04-23 18:32:47 +01:00