X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FBlockMesh.hpp;h=534299233a2cc5d6eae9f5aa47b117246acc3d4c;hb=efc3c1ba52cbe0fc9a4010c37c2d7c7020a0b481;hp=e62b601fcfa5449be2cbcd9aedf94db5b41a10b6;hpb=3542823a1af7f5063d7cc8da84efa248eb889b8a;p=blank.git diff --git a/src/graphics/BlockMesh.hpp b/src/graphics/BlockMesh.hpp index e62b601..5342992 100644 --- a/src/graphics/BlockMesh.hpp +++ b/src/graphics/BlockMesh.hpp @@ -15,7 +15,7 @@ class BlockMesh { public: using Position = glm::vec3; using TexCoord = glm::vec3; - using ColorMod = glm::vec3; + using ColorMod = glm::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;