summaryrefslogtreecommitdiff
path: root/ui/text.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/text.h')
-rw-r--r--ui/text.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/text.h b/ui/text.h
index de2fe2e..5217050 100644
--- a/ui/text.h
+++ b/ui/text.h
@@ -1,5 +1,6 @@
#pragma once
+#include "font.h"
#include "uiComponent.h"
#include <glArrays.h>
#include <glad/gl.h>
@@ -12,7 +13,7 @@ union SDL_Event;
class Text : public UIComponent {
public:
- Text(std::string_view s, Position, glm::vec3 colour);
+ 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;