]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/EntityMesh.hpp
glm backwards compatibility
[blank.git] / src / graphics / EntityMesh.hpp
index 58b29e51f7726fa078b8036443e857a587c25730..cdb7ed2515cb743d478e29fc52f3d499d05395bb 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef BLANK_GRAPHICS_ENTITYMESH_HPP_
 #define BLANK_GRAPHICS_ENTITYMESH_HPP_
 
+#include "glm.hpp"
 #include "VertexArray.hpp"
 
 #include <vector>
 #include <GL/glew.h>
-#include <glm/glm.hpp>
 
 
 namespace blank {
@@ -15,7 +15,7 @@ class EntityMesh {
 public:
        using Position = glm::vec3;
        using TexCoord = glm::vec3;
-       using ColorMod = glm::tvec3<unsigned char>;
+       using ColorMod = TVEC3<unsigned char, glm::precision(0)>;
        using Normal = glm::vec3;
        using Index = unsigned int;