]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/TextInput.hpp
glm backwards compatibility
[blank.git] / src / ui / TextInput.hpp
index 44999faac002259ecdca9c1cbdb21821abb2aec0..66f2ded94c018f67300e5d5d635c49c2ab1bf63f 100644 (file)
@@ -39,8 +39,8 @@ public:
        void Position(const glm::vec3 &p, Gravity g, Gravity pv) noexcept;
        void Width(float) noexcept;
 
-       void Foreground(const glm::vec4 &col) noexcept { fg = col; dirty_cursor = true; }
-       void Background(const glm::vec4 &col) noexcept { bg = col; dirty_box = true; }
+       void Foreground(const PrimitiveMesh::Color &col) noexcept { fg = col; dirty_cursor = true; }
+       void Background(const PrimitiveMesh::Color &col) noexcept { bg = col; dirty_box = true; }
 
        void Handle(const SDL_TextInputEvent &);
        void Handle(const SDL_TextEditingEvent &);
@@ -59,8 +59,8 @@ private:
        PrimitiveMesh bg_mesh;
        PrimitiveMesh cursor_mesh;
 
-       glm::vec4 bg;
-       glm::vec4 fg;
+       PrimitiveMesh::Color bg;
+       PrimitiveMesh::Color fg;
 
        glm::vec3 position;
        glm::vec2 size;