X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FSpriteMesh.hpp;h=019af862e0d700bfd61d699c8c91a5c82929a530;hb=04b035d837668eb6444ec34e59c018d0c25983fd;hp=a7cfd64ef837c1574c292a0a1223fab81fa34d11;hpb=3542823a1af7f5063d7cc8da84efa248eb889b8a;p=blank.git diff --git a/src/graphics/SpriteMesh.hpp b/src/graphics/SpriteMesh.hpp index a7cfd64..019af86 100644 --- a/src/graphics/SpriteMesh.hpp +++ b/src/graphics/SpriteMesh.hpp @@ -1,11 +1,11 @@ #ifndef BLANK_GRPAHICS_SPRITEMESH_HPP_ #define BLANK_GRPAHICS_SPRITEMESH_HPP_ +#include "glm.hpp" #include "VertexArray.hpp" #include #include -#include namespace blank { @@ -60,7 +60,13 @@ public: public: void Update(const Buffer &) noexcept; - void Draw() noexcept; + bool Empty() const noexcept { + return vao.Empty(); + } + + void Draw() const noexcept { + vao.DrawTriangleElements(); + } private: VAO vao;