mutter/gles
Emmanuele Bassi 9e9c615e49 Add runtime debug messages for COGL
Clutter is able to show debug messages written using the CLUTTER_NOTE()
macro at runtime, either by using an environment variable:

  CLUTTER_DEBUG=...

or by using a command line switch:

  --clutter-debug=...
  --clutter-no-debug=...

Both are parsed during the initialization process by using the
GOption API.

COGL would benefit from having the same support.

In order to do this, we need a cogl_get_option_group() function in
COGL that sets up a GOptionGroup for COGL and adds a pre-parse hook
that will check the COGL_DEBUG environment variable. The OptionGroup
will also install two command line switches:

  --cogl-debug
  --cogl-no-debug

With the same semantics of the Clutter ones.

During Clutter initialization, the COGL option group will be attached
to the GOptionContext used to parse the command line options passed
to a Clutter application.

Every debug message written using:

  COGL_NOTE (SECTION, "message format", arguments);

Will then be printed only if SECTION was enabled at runtime.

This whole machinery, like the equivalent one in Clutter, depends on
a compile time switch, COGL_ENABLE_DEBUG, which is enabled at the same
time as CLUTTER_ENABLE_DEBUG. Having two different symbols allows
greater granularity.
2009-02-23 13:00:52 +00:00
..
cogl-context.c [Cogl] Fixes automatic handling of the GL blend enable state. 2009-02-23 10:49:35 +00:00
cogl-context.h Updates GLES1 support for CoglMaterial 2009-01-27 14:26:50 +00:00
cogl-defines.h.in Fix building GLES 2 after the material branch merge 2009-02-02 21:57:41 +00:00
cogl-fbo.c Normalizes gl vs gles code in preperation for synching material changes 2009-01-27 14:26:50 +00:00
cogl-fbo.h Bug 1074 - FBOs on GLES 2008-10-29 14:52:48 +00:00
cogl-fixed-fragment-shader.glsl [multi-texturing] This adds a new cogl_multi_texture API for GL,GLES1 + GLES2 2008-12-22 16:35:51 +00:00
cogl-fixed-vertex-shader.glsl [multi-texturing] This adds a new cogl_multi_texture API for GL,GLES1 + GLES2 2008-12-22 16:35:51 +00:00
cogl-gles2-wrapper.c [cogl-gles2-wrapper] Actually call glActiveTexture 2009-02-20 16:37:20 +00:00
cogl-gles2-wrapper.h [cogl-gles2-wrapper] Convert texture unit settings to be a static sized array 2009-02-20 15:59:13 +00:00
cogl-internal.h Updates GLES1 support for CoglMaterial 2009-01-27 14:26:50 +00:00
cogl-primitives.c Changes cogl_rectangle to take x1, y1, x2, y2 args not x1, y1, width, height 2009-01-28 17:20:15 +00:00
cogl-program.c 2008-11-18 Emmanuele Bassi <ebassi@linux.intel.com> 2008-11-18 15:21:02 +00:00
cogl-program.h * clutter/cogl/gles/cogl-gles2-wrapper.h: 2008-06-24 16:21:40 +00:00
cogl-shader-private.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:25:00 +00:00
cogl-shader.c 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:25:00 +00:00
cogl-texture-private.h Updates GLES1 support for CoglMaterial 2009-01-27 14:26:50 +00:00
cogl-texture.c Call glActiveTexture and glClientActiveTexture through cogl_get_proc_address 2009-02-16 12:46:36 +00:00
cogl-util.c Merged clutter-ivan branch into trunk. 2008-04-25 13:37:36 +00:00
cogl-util.h Merged clutter-ivan branch into trunk. 2008-04-25 13:37:36 +00:00
cogl.c [Cogl] the cogl_get_*_matrix functions now work with CoglMatrix types 2009-02-23 10:49:35 +00:00
Makefile.am Add runtime debug messages for COGL 2009-02-23 13:00:52 +00:00
stringify.sh * clutter/cogl/gles/cogl-gles2-wrapper.h: 2008-06-24 16:21:40 +00:00