]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/SkyBoxMesh.hpp
glm backwards compatibility
[blank.git] / src / graphics / SkyBoxMesh.hpp
index ab1da8dc807280d2d65a9508d0ca907c31dd2550..2962f0764ec4735e984cae2045073f71aec92985 100644 (file)
@@ -1,10 +1,10 @@
 #ifndef BLANK_GRAPHICS_SKYBOXMESH_HPP_
 #define BLANK_GRAPHICS_SKYBOXMESH_HPP_
 
+#include "glm.hpp"
 #include "VertexArray.hpp"
 
 #include <vector>
-#include <glm/glm.hpp>
 
 
 namespace blank {
@@ -47,7 +47,13 @@ public:
        void LoadUnitBox();
        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;