summaryrefslogtreecommitdiff
path: root/cogl/cogl-debug.c
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2009-12-04 19:43:39 +0000
committerNeil Roberts <neil@linux.intel.com>2009-12-04 20:29:12 +0000
commit636cef1bd64754e544971c7d691d6179b7d11109 (patch)
tree8e747f6ffa25a61b2ad2afcbebb104fe5cdf494e /cogl/cogl-debug.c
parentf5d43d9b024f1e94e6e7adfef4c3916a9da3d39d (diff)
downloadcogl-636cef1bd64754e544971c7d691d6179b7d11109.tar.gz
cogl-atlas: Add a debug option to visualize the atlas
This adds a 'dump-atlas-image' debug category. When enabled, CoglAtlas will use Cairo to create a png which visualizes the leaf rectangles of the atlas.
Diffstat (limited to 'cogl/cogl-debug.c')
-rw-r--r--cogl/cogl-debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cogl/cogl-debug.c b/cogl/cogl-debug.c
index f653ee4b..bba75e56 100644
--- a/cogl/cogl-debug.c
+++ b/cogl/cogl-debug.c
@@ -48,7 +48,8 @@ static const GDebugKey cogl_debug_keys[] = {
{ "disable-software-transform", COGL_DEBUG_DISABLE_SOFTWARE_TRANSFORM },
{ "matrices", COGL_DEBUG_MATRICES },
{ "force-scanline-paths", COGL_DEBUG_FORCE_SCANLINE_PATHS },
- { "atlas", COGL_DEBUG_ATLAS }
+ { "atlas", COGL_DEBUG_ATLAS },
+ { "dump-atlas-image", COGL_DEBUG_DUMP_ATLAS_IMAGE }
};
static const gint n_cogl_debug_keys = G_N_ELEMENTS (cogl_debug_keys);