Browse Source

Add vec4 to logstream

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

5
inferno/src/inferno/scene/components.cpp

@ -7,6 +7,11 @@ namespace Inferno {
return stream << "{ " << value.x << ", " << value.y << ", " << value.z << " }";
}
const LogStream& operator<<(const LogStream& stream, const glm::vec4& value)
{
return stream << "{ " << value.x << ", " << value.y << ", " << value.z << ", " << value.w << " }";
}
const LogStream& operator<<(const LogStream& stream, const glm::mat4& value)
{
return stream << "mat4 "

1
inferno/src/inferno/scene/components.h

@ -45,6 +45,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::vec4& value);
const LogStream& operator<<(const LogStream& stream, const glm::mat4& value);
}

Loading…
Cancel
Save