[debug] Adds a COGL_DEBUG=matrices debug option

This adds a COGL_DEBUG=matrices debug option that can be used to trace all
matrix manipulation done using the Cogl API.  This can be handy when you
break something in such a way that a trace is still comparable with a
previous working version since you can simply diff a log of the broken
version vs the working version to home in on the bug.
This commit is contained in:
Robert Bragg
2009-10-26 11:01:33 +00:00
parent 0a1db7c4d8
commit 2126bf60fd
5 changed files with 76 additions and 2 deletions

View File

@ -44,7 +44,8 @@ typedef enum {
COGL_DEBUG_DISABLE_VBOS = 1 << 12,
COGL_DEBUG_JOURNAL = 1 << 13,
COGL_DEBUG_BATCHING = 1 << 14,
COGL_DEBUG_DISABLE_SOFTWARE_TRANSFORM = 1 << 15
COGL_DEBUG_DISABLE_SOFTWARE_TRANSFORM = 1 << 15,
COGL_DEBUG_MATRICES = 1 << 16
} CoglDebugFlags;
#ifdef COGL_ENABLE_DEBUG