Add operator<< overload for Object

This commit is contained in:
Eryn Wells 2013-09-22 10:16:15 -07:00
parent c6b8b167ca
commit c405302613
2 changed files with 15 additions and 0 deletions

View file

@ -54,6 +54,15 @@ Object::set_origin(Vector3 v)
origin = v;
}
std::ostream &
operator<<(std::ostream &os, const Object &o)
{
// Stream objects like this: [Object origin]
os << "[Object " << o.origin << "]";
return os;
}
#pragma mark - Shapes
/*