summaryrefslogtreecommitdiff
path: root/cogl/cogl-debug.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2010-02-17 14:38:11 +0000
committerRobert Bragg <robert@linux.intel.com>2010-02-23 22:09:06 +0000
commit210e618e6dc4dcbb302c23d507df889582a8b85e (patch)
tree4ff1b46891c0a1d54543f3a52d4074dcde1b6851 /cogl/cogl-debug.h
parente8eb65319c1b01cf6cf61a0d7a796ca1d304791e (diff)
downloadcogl-210e618e6dc4dcbb302c23d507df889582a8b85e.tar.gz
cogl debug: Makes COGL_DEBUG=all|verbose|help more useful
COGL_DEBUG=all wasn't previously useful as there are several options that change the behaviour of Cogl and all together wouldn't help anyone debug anything. This patch makes it so COGL_DEBUG=all|verbose now only enables options that don't change the behaviour of Cogl, i.e. they only affect the amount of noise we'll print to a terminal. In addition to that this patch also improves the output from COGL_DEBUG=help so we now print a table of options including one liner descriptions of what each option enables.
Diffstat (limited to 'cogl/cogl-debug.h')
-rw-r--r--cogl/cogl-debug.h37
1 files changed, 17 insertions, 20 deletions
diff --git a/cogl/cogl-debug.h b/cogl/cogl-debug.h
index e0945e64..146db9cc 100644
--- a/cogl/cogl-debug.h
+++ b/cogl/cogl-debug.h
@@ -29,26 +29,23 @@
G_BEGIN_DECLS
typedef enum {
- COGL_DEBUG_MISC = 1 << 0,
- COGL_DEBUG_TEXTURE = 1 << 1,
- COGL_DEBUG_MATERIAL = 1 << 2,
- COGL_DEBUG_SHADER = 1 << 3,
- COGL_DEBUG_OFFSCREEN = 1 << 4,
- COGL_DEBUG_DRAW = 1 << 5,
- COGL_DEBUG_PANGO = 1 << 6,
- COGL_DEBUG_RECTANGLES = 1 << 7,
- COGL_DEBUG_HANDLE = 1 << 8,
- COGL_DEBUG_BLEND_STRINGS = 1 << 9,
- COGL_DEBUG_DISABLE_BATCHING = 1 << 10,
- COGL_DEBUG_DISABLE_VBOS = 1 << 11,
- COGL_DEBUG_JOURNAL = 1 << 12,
- COGL_DEBUG_BATCHING = 1 << 13,
- COGL_DEBUG_DISABLE_SOFTWARE_TRANSFORM = 1 << 14,
- COGL_DEBUG_MATRICES = 1 << 15,
- COGL_DEBUG_FORCE_SCANLINE_PATHS = 1 << 16,
- COGL_DEBUG_ATLAS = 1 << 17,
- COGL_DEBUG_DUMP_ATLAS_IMAGE = 1 << 18,
- COGL_DEBUG_DISABLE_ATLAS = 1 << 19
+ COGL_DEBUG_SLICING = 1 << 1,
+ COGL_DEBUG_OFFSCREEN = 1 << 2,
+ COGL_DEBUG_DRAW = 1 << 3,
+ COGL_DEBUG_PANGO = 1 << 4,
+ COGL_DEBUG_RECTANGLES = 1 << 5,
+ COGL_DEBUG_HANDLE = 1 << 6,
+ COGL_DEBUG_BLEND_STRINGS = 1 << 7,
+ COGL_DEBUG_DISABLE_BATCHING = 1 << 8,
+ COGL_DEBUG_DISABLE_VBOS = 1 << 9,
+ COGL_DEBUG_JOURNAL = 1 << 10,
+ COGL_DEBUG_BATCHING = 1 << 11,
+ COGL_DEBUG_DISABLE_SOFTWARE_TRANSFORM = 1 << 12,
+ COGL_DEBUG_MATRICES = 1 << 13,
+ COGL_DEBUG_FORCE_SCANLINE_PATHS = 1 << 14,
+ COGL_DEBUG_ATLAS = 1 << 15,
+ COGL_DEBUG_DUMP_ATLAS_IMAGE = 1 << 16,
+ COGL_DEBUG_DISABLE_ATLAS = 1 << 17
} CoglDebugFlags;
#ifdef COGL_ENABLE_DEBUG