diff options
author | Neil Roberts <neil@linux.intel.com> | 2009-12-04 19:43:39 +0000 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2009-12-04 20:29:12 +0000 |
commit | 636cef1bd64754e544971c7d691d6179b7d11109 (patch) | |
tree | 8e747f6ffa25a61b2ad2afcbebb104fe5cdf494e /cogl/cogl-debug.c | |
parent | f5d43d9b024f1e94e6e7adfef4c3916a9da3d39d (diff) | |
download | cogl-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.c | 3 |
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); |