Add transform component printing to log
This commit is contained in:
@@ -16,4 +16,12 @@ namespace Inferno {
|
||||
return stream;
|
||||
}
|
||||
|
||||
const LogStream& operator<<(const LogStream& stream, const TransformComponent& value)
|
||||
{
|
||||
return stream << "transform "
|
||||
<< value.translate << " t\n "
|
||||
<< value.rotate << " r\n "
|
||||
<< value.scale << " s";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace Inferno {
|
||||
|
||||
// ----------------------------------------
|
||||
|
||||
const LogStream& operator<<(const LogStream& stream, const TransformComponent& value);
|
||||
const LogStream& operator<<(const LogStream& stream, const glm::vec3& value);
|
||||
const LogStream& operator<<(const LogStream& stream, const glm::mat4& value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user