X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FCursor.hpp;h=74603194ae45cfe5efa9dbd6426d7f1855db5962;hb=refs%2Fheads%2Fmaster;hp=828e411209b89cb6022a997a689e7b5d83a70a4a;hpb=0fc4efc1800c07534c1e945618630910e2a8e87f;p=tacos.git diff --git a/src/world/Cursor.hpp b/src/world/Cursor.hpp index 828e411..7460319 100644 --- a/src/world/Cursor.hpp +++ b/src/world/Cursor.hpp @@ -1,8 +1,7 @@ #ifndef TACOS_WORLD_CURSOR_HPP_ #define TACOS_WORLD_CURSOR_HPP_ -#include -#include +#include "../graphics/vao.hpp" namespace tacos { @@ -13,10 +12,6 @@ class Cursor { public: Cursor(); - ~Cursor(); - - Cursor(const Cursor &) = delete; - Cursor &operator =(const Cursor &) = delete; /// hide cursor void Hide() noexcept; @@ -27,8 +22,11 @@ public: void Draw() const noexcept; private: - GLuint vao; - GLuint buffers[2]; + struct Attributes { + glm::vec3 position; + }; + + SimpleVAO vao; // side length in vertices (make sure it's between 2 and 8 inclusive) int size; @@ -40,10 +38,6 @@ private: FLOOR, } mode; - struct Attributes { - glm::vec3 position; - }; - }; }