X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FPrimitiveMesh.hpp;h=6a8b6967df6606a081ff2b5be69c428bc62ec454;hb=f071bb512a09cece895e65ca48eba2a7155d6593;hp=013bf37bde34175c57b0d13c773fa11334eb3cda;hpb=1e93bfb5089737f6b6d8fdd2f17260944fca44b2;p=blank.git diff --git a/src/graphics/PrimitiveMesh.hpp b/src/graphics/PrimitiveMesh.hpp index 013bf37..6a8b696 100644 --- a/src/graphics/PrimitiveMesh.hpp +++ b/src/graphics/PrimitiveMesh.hpp @@ -16,7 +16,7 @@ class PrimitiveMesh { public: using Position = glm::vec3; - using Color = glm::vec4; + using Color = glm::tvec4; using Index = unsigned short; using Positions = std::vector; @@ -50,13 +50,13 @@ public: void FillRect( float w, float h, - const glm::vec4 &color = glm::vec4(0.0f), + const Color &color = Color(0), const glm::vec2 &pivot = glm::vec2(0.0f) ); void OutlineBox( const AABB &, - const glm::vec4 &color = glm::vec4(0.0f) + const Color &color = Color(0) ); };