diff --git a/inferno/src/inferno/component/transform.cpp b/inferno/src/inferno/component/transform.cpp index 4008b4c..a0f0110 100644 --- a/inferno/src/inferno/component/transform.cpp +++ b/inferno/src/inferno/component/transform.cpp @@ -32,6 +32,12 @@ namespace Inferno { 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) { stream << "{ " << value.x << ", " << value.y << ", " << value.z << " }"; diff --git a/inferno/src/inferno/component/transform.h b/inferno/src/inferno/component/transform.h index 41a7049..514251d 100644 --- a/inferno/src/inferno/component/transform.h +++ b/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 glm::vec2& 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);