#ifndef TACOS_WORLD_CURSOR_HPP_
#define TACOS_WORLD_CURSOR_HPP_
-#include <GL/glew.h>
-#include <glm/glm.hpp>
+#include "../graphics/vao.hpp"
namespace tacos {
public:
Cursor();
- ~Cursor();
-
- Cursor(const Cursor &) = delete;
- Cursor &operator =(const Cursor &) = delete;
/// hide cursor
void Hide() noexcept;
void Draw() const noexcept;
private:
- GLuint vao;
- GLuint buffers[2];
+ struct Attributes {
+ glm::vec3 position;
+ };
+
+ SimpleVAO<Attributes, unsigned char> vao;
// side length in vertices (make sure it's between 2 and 8 inclusive)
int size;
FLOOR,
} mode;
- struct Attributes {
- glm::vec3 position;
- };
-
};
}