summaryrefslogtreecommitdiff
path: root/cogl/cogl-debug.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2010-11-16 13:06:08 +0000
committerRobert Bragg <robert@linux.intel.com>2010-11-19 13:27:30 +0000
commit460e4b90d3ef10c04a32bdb1bd4556f9464d8d1e (patch)
tree2a6260fc278c33480680001b402207561c7f1464 /cogl/cogl-debug.h
parent20a1f876286e3f5cff7bae7dabd9c37629d61336 (diff)
downloadcogl-460e4b90d3ef10c04a32bdb1bd4556f9464d8d1e.tar.gz
debug: Adds a COGL_DEBUG=wireframe option
This adds a COGL_DEBUG=wireframe option to visualize the underlying geometry of the primitives being drawn via Cogl. This works for triangle list, triangle fan, triangle strip and quad (internal only) primitives. It also works for indexed vertex arrays.
Diffstat (limited to 'cogl/cogl-debug.h')
-rw-r--r--cogl/cogl-debug.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cogl/cogl-debug.h b/cogl/cogl-debug.h
index 9a390b4a..459ec743 100644
--- a/cogl/cogl-debug.h
+++ b/cogl/cogl-debug.h
@@ -56,7 +56,8 @@ typedef enum {
COGL_DEBUG_DISABLE_BLENDING = 1 << 23,
COGL_DEBUG_TEXTURE_PIXMAP = 1 << 24,
COGL_DEBUG_BITMAP = 1 << 25,
- COGL_DEBUG_DISABLE_NPOT_TEXTURES = 1 << 26
+ COGL_DEBUG_DISABLE_NPOT_TEXTURES = 1 << 26,
+ COGL_DEBUG_WIREFRAME = 1 << 27
} CoglDebugFlags;
#ifdef COGL_ENABLE_DEBUG