mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 12:23:24 +02:00
add debug streamer for xColor
This commit is contained in:
parent
ea0022501b
commit
09a06c9d82
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue