mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-10 04:53:04 +02:00
add some debugging streamers for some scene classes
This commit is contained in:
parent
8c9cf480f3
commit
61712a6ac3
1 changed files with 19 additions and 0 deletions
|
@ -94,6 +94,13 @@ public:
|
|||
bool isPickable() const { return _flags[PICKABLE]; }
|
||||
};
|
||||
|
||||
inline QDebug operator<<(QDebug debug, const ItemKey& itemKey) {
|
||||
debug << "[ItemKey: isOpaque:" << itemKey.isOpaque()
|
||||
<< ", isStatic:" << itemKey.isStatic()
|
||||
<< ", isWorldSpace:" << itemKey.isWorldSpace()
|
||||
<< "]";
|
||||
return debug;
|
||||
}
|
||||
|
||||
class ItemFilter {
|
||||
public:
|
||||
|
@ -154,6 +161,12 @@ public:
|
|||
};
|
||||
};
|
||||
|
||||
inline QDebug operator<<(QDebug debug, const ItemFilter& me) {
|
||||
debug << "[ItemFilter: opaqueShape:" << me.test(ItemKey::Builder::opaqueShape())
|
||||
<< "]";
|
||||
return debug;
|
||||
}
|
||||
|
||||
class Item {
|
||||
public:
|
||||
typedef std::vector<Item> Vector;
|
||||
|
@ -203,6 +216,12 @@ protected:
|
|||
friend class Scene;
|
||||
};
|
||||
|
||||
inline QDebug operator<<(QDebug debug, const Item& item) {
|
||||
debug << "[Item: _key:" << item.getKey() << ", bounds:" << item.getBound() << "]";
|
||||
return debug;
|
||||
}
|
||||
|
||||
|
||||
// THe Payload class is the real Payload to be used
|
||||
// THis allow anything to be turned into a Payload as long as the required interface functions are available
|
||||
// When creating a new kind of payload from a new "stuff" class then you need to create specialized version for "stuff"
|
||||
|
|
Loading…
Reference in a new issue