add debug streamer for xColor

This commit is contained in:
ZappoMan 2014-11-13 08:14:01 -08:00
parent ea0022501b
commit 09a06c9d82

View file

@ -34,6 +34,15 @@ struct xColor {
unsigned char blue;
};
inline QDebug& operator<<(QDebug& dbg, const xColor& c) {
dbg.nospace() << "{type='xColor'"
", red=" << c.red <<
", green=" << c.green <<
", blue=" << c.blue <<
"}";
return dbg;
}
static const float ZERO = 0.0f;
static const float ONE = 1.0f;
static const float ONE_HALF = 0.5f;