diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-01-01 16:44:19 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-01-01 16:44:19 +0000 |
commit | 7c03d93c367b842c464dca30e121bc4c20547c36 (patch) | |
tree | 6df340dc3b0bd16f6ced2a051a68fc8a3c67a08c /ui/icon.h | |
parent | First iteration with font/text support (diff) | |
download | ilt-7c03d93c367b842c464dca30e121bc4c20547c36.tar.bz2 ilt-7c03d93c367b842c464dca30e121bc4c20547c36.tar.xz ilt-7c03d93c367b842c464dca30e121bc4c20547c36.zip |
Generic solution for glGen/glDel arrays, then tidy-up the uses
Diffstat (limited to 'ui/icon.h')
-rw-r--r-- | ui/icon.h | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -1,10 +1,9 @@ #ifndef ICON_H
#define ICON_H
-#include <GL/glew.h>
#include <filesystem>
+#include <glArrays.h>
#include <glm/glm.hpp>
-#include <special_members.hpp>
class Image;
@@ -13,16 +12,11 @@ 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;
+ glTexture m_texture;
};
#endif
|