From 8902c9b7d26184ae045afcccd66fa168fdff56aa Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 6 Jul 2024 13:33:30 +0100 Subject: Replace deprecated GL_QUADS usage in text rendering --- ui/text.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ui/text.h') 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>> models; + struct TextData { + GLuint textureId; + std::vector range; + }; + + std::vector models; glContainer quads; glVertexArray vao; glm::vec3 colour; -- cgit v1.2.3