[cogl debug] --cogl-debug=rectangles now outlines all cogl rectangles
authorRobert Bragg <robert@linux.intel.com>
Fri, 17 Apr 2009 14:10:55 +0000 (15:10 +0100)
committerRobert Bragg <robert@linux.intel.com>
Fri, 17 Apr 2009 14:25:28 +0000 (15:25 +0100)
commitac21e7b182d08cdbdcb5f4e0f2fd44a23e7e8d93
tree6c48c614598574f036e134af9442af222f92a6eb
parent169d472d17113416ea7e6c4eea4abda92c54e934
[cogl debug] --cogl-debug=rectangles now outlines all cogl rectangles

This makes the #if 0'd debug code that was in _cogl_journal_flush_quad_batch
- which we have repeatedly found usefull for debugging various geometry
issues in Clutter apps - a runtime debug option.

The outline colors rotate in order from red to green to blue which can also
help confirm the order that your geometry really drawn.

The outlines are not affected by the current material state, so if you e.g.
have a blending bug where geometry mysteriously disappears this can confirm
if the underlying rectangles are actually being emitted but blending is
causing them to be invisible.
clutter/cogl/cogl-debug.h
clutter/cogl/common/cogl-debug.c
clutter/cogl/common/cogl-primitives.c