Browse Source

Add transform component printing to log

master
Riyyi 4 years ago
parent
commit
fa5ec61c61
  1. 8
      inferno/src/inferno/scene/components.cpp
  2. 1
      inferno/src/inferno/scene/components.h

8
inferno/src/inferno/scene/components.cpp

@ -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
inferno/src/inferno/scene/components.h

@ -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);

Loading…
Cancel
Save