X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FEntityMesh.hpp;h=cdb7ed2515cb743d478e29fc52f3d499d05395bb;hb=dcd54cacda98c2c0f7cf0c7a9131fb858d8ee10a;hp=6b894f909f075fdd4a230d30c9801823dbf74a0a;hpb=3542823a1af7f5063d7cc8da84efa248eb889b8a;p=blank.git diff --git a/src/graphics/EntityMesh.hpp b/src/graphics/EntityMesh.hpp index 6b894f9..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::vec3; + 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;