#pragma once #include "uiComponent.h" #include #include #include #include #include #include class UIShader; union SDL_Event; class Text : public UIComponent { public: Text(std::string_view s, Position, glm::vec3 colour); void render(const UIShader &, const Position & parentPos) const override; bool handleInput(const SDL_Event &, const Position & parentPos) override; private: struct Model { Model(GLuint, GLsizei); GLuint texture; GLsizei count; glVertexArray vao; glBuffer vbo; }; std::vector models; glm::vec3 colour; };