Add transform component printing to log

This commit is contained in:
Riyyi
2021-01-13 21:01:17 +01:00
parent aba518bbbb
commit fa5ec61c61
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -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";
}
}
+1
View File
@@ -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);