paint volumes: CLUTTER_PAINT=paint-volumes debug option

This adds a debug option to visualize the paint volumes of all actors.
When CLUTTER_PAINT=paint-volumes is exported in the environment before
running a Clutter application then all actors will have their bounding
volume drawn in green with a label corresponding to the actors type.
This commit is contained in:
Robert Bragg
2010-09-07 18:50:29 +01:00
parent 3540d222e1
commit 066220f983
3 changed files with 104 additions and 2 deletions

View File

@ -35,7 +35,8 @@ typedef enum {
typedef enum {
CLUTTER_DEBUG_DISABLE_SWAP_EVENTS = 1 << 0,
CLUTTER_DEBUG_DISABLE_CLIPPED_REDRAWS = 1 << 1,
CLUTTER_DEBUG_REDRAWS = 1 << 2
CLUTTER_DEBUG_REDRAWS = 1 << 2,
CLUTTER_DEBUG_PAINT_VOLUMES = 1 << 3
} ClutterDrawDebugFlag;
#ifdef CLUTTER_ENABLE_DEBUG