X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FBlockMesh.hpp;h=ff41df915dfd2a2e7542d14266df3313c99ab005;hb=refs%2Fheads%2Fmaster;hp=e62b601fcfa5449be2cbcd9aedf94db5b41a10b6;hpb=3542823a1af7f5063d7cc8da84efa248eb889b8a;p=blank.git diff --git a/src/graphics/BlockMesh.hpp b/src/graphics/BlockMesh.hpp index e62b601..ff41df9 100644 --- a/src/graphics/BlockMesh.hpp +++ b/src/graphics/BlockMesh.hpp @@ -1,11 +1,11 @@ #ifndef BLANK_GRAPHICS_BLOCKMESH_HPP_ #define BLANK_GRAPHICS_BLOCKMESH_HPP_ +#include "glm.hpp" #include "VertexArray.hpp" #include #include -#include namespace blank { @@ -15,7 +15,7 @@ class BlockMesh { public: using Position = glm::vec3; using TexCoord = glm::vec3; - using ColorMod = glm::vec3; + using ColorMod = TVEC3; using Light = float; 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;