X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FEntityMesh.hpp;h=58b29e51f7726fa078b8036443e857a587c25730;hb=6513b55584093a86ce1e369e054263dd75c295c8;hp=6b894f909f075fdd4a230d30c9801823dbf74a0a;hpb=3542823a1af7f5063d7cc8da84efa248eb889b8a;p=blank.git diff --git a/src/graphics/EntityMesh.hpp b/src/graphics/EntityMesh.hpp index 6b894f9..58b29e5 100644 --- a/src/graphics/EntityMesh.hpp +++ b/src/graphics/EntityMesh.hpp @@ -15,7 +15,7 @@ class EntityMesh { public: using Position = glm::vec3; using TexCoord = glm::vec3; - using ColorMod = glm::vec3; + using ColorMod = glm::tvec3; 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;