Added stream serialisation to Region.

This commit is contained in:
Daviw Williams
2013-05-07 15:41:26 +02:00
parent 055539ef75
commit 2a839e583d
2 changed files with 19 additions and 0 deletions

View File

@ -207,8 +207,13 @@ namespace PolyVox
int32_t m_iUpperZ;
};
// Non-member functions
bool intersects(const Region& a, const Region& b);
// Non-member overloaded operators.
/// Stream insertion operator.
std::ostream& operator<<(std::ostream& os, const Region& region);
// Functions to be inlined to to be in the header rather than the .cpp.
// 'inline' keyword is used for the definition rather than the declaration.
// See also http://www.parashift.com/c++-faq-lite/inline-functions.html