Browse Source

Add vec2 to LogStream

master
Riyyi 4 years ago
parent
commit
fdc8b2f389
  1. 6
      inferno/src/inferno/component/transform.cpp
  2. 1
      inferno/src/inferno/component/transform.h

6
inferno/src/inferno/component/transform.cpp

@ -32,6 +32,12 @@ namespace Inferno {
return stream; return stream;
} }
const LogStream& operator<<(const LogStream& stream, const glm::vec2& value)
{
stream << "{ " << value.x << ", " << value.y << ", " << " }";
return stream;
}
const LogStream& operator<<(const LogStream& stream, const glm::vec3& value) const LogStream& operator<<(const LogStream& stream, const glm::vec3& value)
{ {
stream << "{ " << value.x << ", " << value.y << ", " << value.z << " }"; stream << "{ " << value.x << ", " << value.y << ", " << value.z << " }";

1
inferno/src/inferno/component/transform.h

@ -41,6 +41,7 @@ namespace Inferno {
// ---------------------------------------- // ----------------------------------------
const LogStream& operator<<(const LogStream& stream, const Transform& value); const LogStream& operator<<(const LogStream& stream, const Transform& value);
const LogStream& operator<<(const LogStream& stream, const glm::vec2& value);
const LogStream& operator<<(const LogStream& stream, const glm::vec3& 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::vec4& value);
const LogStream& operator<<(const LogStream& stream, const glm::mat4& value); const LogStream& operator<<(const LogStream& stream, const glm::mat4& value);

Loading…
Cancel
Save