summaryrefslogtreecommitdiff
path: root/ui/text.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-07-06 13:33:30 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-07-06 13:33:45 +0100
commit8902c9b7d26184ae045afcccd66fa168fdff56aa (patch)
tree596e967d69b073109dad7db437a60093bf499e26 /ui/text.h
parentFix up perf tests in light of window management changes (diff)
downloadilt-8902c9b7d26184ae045afcccd66fa168fdff56aa.tar.bz2
ilt-8902c9b7d26184ae045afcccd66fa168fdff56aa.tar.xz
ilt-8902c9b7d26184ae045afcccd66fa168fdff56aa.zip
Replace deprecated GL_QUADS usage in text rendering
Diffstat (limited to 'ui/text.h')
-rw-r--r--ui/text.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/text.h b/ui/text.h
index 31ed9a5..a367456 100644
--- a/ui/text.h
+++ b/ui/text.h
@@ -21,7 +21,12 @@ public:
Text & operator=(const std::string_view s);
private:
- std::vector<std::pair<GLuint, std::pair<GLsizei, GLint>>> models;
+ struct TextData {
+ GLuint textureId;
+ std::vector<unsigned short> range;
+ };
+
+ std::vector<TextData> models;
glContainer<Font::Quad> quads;
glVertexArray vao;
glm::vec3 colour;