]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/EntityMesh.hpp
add debian package names
[blank.git] / src / graphics / EntityMesh.hpp
index 6b894f909f075fdd4a230d30c9801823dbf74a0a..58b29e51f7726fa078b8036443e857a587c25730 100644 (file)
@@ -15,7 +15,7 @@ class EntityMesh {
 public:
        using Position = glm::vec3;
        using TexCoord = glm::vec3;
-       using ColorMod = glm::vec3;
+       using ColorMod = glm::tvec3<unsigned char>;
        using Normal = glm::vec3;
        using Index = unsigned int;
 
@@ -69,7 +69,13 @@ public:
 public:
        void Update(const Buffer &) noexcept;
 
-       void Draw() const noexcept;
+       bool Empty() const noexcept {
+               return vao.Empty();
+       }
+
+       void Draw() const noexcept {
+               vao.DrawTriangleElements();
+       }
 
 private:
        VAO vao;