diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-19 03:19:38 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-19 03:19:38 +0000 |
commit | 0d432961a29d509cd0d1fa80361f04009dcf9c17 (patch) | |
tree | bc7536b0ac454a3c466c904123b41498dc6b1905 /ui/text.h | |
parent | Replace basic query tool with a ImGui version (diff) | |
download | ilt-0d432961a29d509cd0d1fa80361f04009dcf9c17.tar.bz2 ilt-0d432961a29d509cd0d1fa80361f04009dcf9c17.tar.xz ilt-0d432961a29d509cd0d1fa80361f04009dcf9c17.zip |
Remove lots of stuff not required or superseded with ImGui use
Diffstat (limited to 'ui/text.h')
-rw-r--r-- | ui/text.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/ui/text.h b/ui/text.h deleted file mode 100644 index a367456..0000000 --- a/ui/text.h +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once - -#include "font.h" -#include "glContainer.h" -#include "uiComponent.h" -#include <glArrays.h> -#include <glad/gl.h> -#include <glm/glm.hpp> -#include <string_view> - -class UIShader; -union SDL_Event; - -class Text : public UIComponent { -public: - Text(std::string_view s, const Font &, Position, glm::vec3 colour); - - void render(const UIShader &, const Position & parentPos) const override; - bool handleInput(const SDL_Event &, const Position & parentPos) override; - - Text & operator=(const std::string_view s); - -private: - struct TextData { - GLuint textureId; - std::vector<unsigned short> range; - }; - - std::vector<TextData> models; - glContainer<Font::Quad> quads; - glVertexArray vao; - glm::vec3 colour; - const Font & font; -}; |