X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FEntityMesh.hpp;h=cdb7ed2515cb743d478e29fc52f3d499d05395bb;hb=831183e2cbab7ebf42bf4cace86f7bf9db482ed1;hp=804bb6ede5f1a59488fdff2226b9492267c4c36a;hpb=f071bb512a09cece895e65ca48eba2a7155d6593;p=blank.git diff --git a/src/graphics/EntityMesh.hpp b/src/graphics/EntityMesh.hpp index 804bb6e..cdb7ed2 100644 --- a/src/graphics/EntityMesh.hpp +++ b/src/graphics/EntityMesh.hpp @@ -1,11 +1,11 @@ #ifndef BLANK_GRAPHICS_ENTITYMESH_HPP_ #define BLANK_GRAPHICS_ENTITYMESH_HPP_ +#include "glm.hpp" #include "VertexArray.hpp" #include #include -#include namespace blank { @@ -15,7 +15,7 @@ class EntityMesh { public: using Position = glm::vec3; using TexCoord = glm::vec3; - using ColorMod = glm::tvec3; + using ColorMod = 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;