X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FBlockMesh.hpp;h=ff41df915dfd2a2e7542d14266df3313c99ab005;hb=dcd54cacda98c2c0f7cf0c7a9131fb858d8ee10a;hp=399ff320ddd8e06bf19387b171ed6b8684d79123;hpb=f071bb512a09cece895e65ca48eba2a7155d6593;p=blank.git diff --git a/src/graphics/BlockMesh.hpp b/src/graphics/BlockMesh.hpp index 399ff32..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::tvec3; + 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;