X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FSpriteMesh.hpp;h=0c6c9a1918b3f97758335147d872471e8b5f85bb;hb=ef2427f841a434f93805321f8bbac44be2dd4555;hp=a7cfd64ef837c1574c292a0a1223fab81fa34d11;hpb=2ad195d00eea2c4d48f3f1a3ccc60a8176e7da20;p=blank.git diff --git a/src/graphics/SpriteMesh.hpp b/src/graphics/SpriteMesh.hpp index a7cfd64..0c6c9a1 100644 --- a/src/graphics/SpriteMesh.hpp +++ b/src/graphics/SpriteMesh.hpp @@ -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;