diff options
Diffstat (limited to 'ui/icon.h')
-rw-r--r-- | ui/icon.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ui/icon.h b/ui/icon.h new file mode 100644 index 0000000..cc6df87 --- /dev/null +++ b/ui/icon.h @@ -0,0 +1,28 @@ +#ifndef ICON_H
+#define ICON_H
+
+#include <GL/glew.h>
+#include <filesystem>
+#include <glm/glm.hpp>
+#include <special_members.hpp>
+
+class Image;
+
+class Icon {
+public:
+ explicit Icon(const std::filesystem::path & fileName);
+ explicit Icon(const Image & image);
+
+ virtual ~Icon();
+
+ NO_COPY(Icon);
+ NO_MOVE(Icon);
+
+ void Bind() const;
+ const glm::vec2 size;
+
+private:
+ GLuint m_texture;
+};
+
+#endif
|