diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-07-06 13:33:30 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-07-06 13:33:30 +0100 |
commit | 16392a2dab40317db620ef846469faadaa994e9f (patch) | |
tree | c8d28c4db1830f4f16bd7400fb69faad2138c4eb /ui/text.h | |
parent | Add an InstanceVertices partition perf test (diff) | |
download | ilt-16392a2dab40317db620ef846469faadaa994e9f.tar.bz2 ilt-16392a2dab40317db620ef846469faadaa994e9f.tar.xz ilt-16392a2dab40317db620ef846469faadaa994e9f.zip |
Replace deprecated GL_QUADS usage in text rendering
Diffstat (limited to 'ui/text.h')
-rw-r--r-- | ui/text.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; |