]> git.localhorst.tv Git - blank.git/blob - src/glmio.hpp
some cleanup
[blank.git] / src / glmio.hpp
1 #ifndef BLANKL_GLMIO_HPP_
2 #define BLANKL_GLMIO_HPP_
3
4 #include <ostream>
5 #include <glm/glm.hpp>
6
7
8 namespace blank {
9
10 template<class T>
11 std::ostream &operator <<(std::ostream &out, const glm::tvec3<T> &v) {
12         return out << '<' << v.x << ", " << v.y << ", " << v.z << '>';
13 }
14
15 template<class T>
16 std::ostream &operator <<(std::ostream &out, const glm::tvec4<T> &v) {
17         return out << '<' << v.x << ", " << v.y << ", " << v.z << ", " << v.w << '>';
18 }
19
20 template<class T>
21 std::ostream &operator <<(std::ostream &out, const glm::tmat4x4<T> &m) {
22         return out << '[' << m[0] << ", " << m[1] << ", " << m[2] << ", " << m[3] << ']';
23 }
24
25 }
26
27 #endif