diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-12 20:45:49 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-12 20:45:49 +0100 |
commit | 431d7cceb25db86f31a8c89440f3cdd2c7bf061f (patch) | |
tree | eb32cf71b0f3fe369cd4509c54b8df960e2765e4 /src/crepe/api/Text.cpp | |
parent | e75e355c3a59d53a1d64fd8fae3331b2234083e2 (diff) |
load font almost working
Diffstat (limited to 'src/crepe/api/Text.cpp')
-rw-r--r-- | src/crepe/api/Text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/api/Text.cpp b/src/crepe/api/Text.cpp index dd44dd9..12d01f1 100644 --- a/src/crepe/api/Text.cpp +++ b/src/crepe/api/Text.cpp @@ -2,5 +2,5 @@ using namespace crepe; -Text::Text(game_object_id_t id,const vec2 & dimensions, const vec2 & offset, const Asset & font) : UIObject(id,dimensions,offset),source(font){} +Text::Text(game_object_id_t id,const vec2 & dimensions, const vec2 & offset,std::string text,std::string font_family) : UIObject(id,dimensions,offset),text(text), font_family(font_family){} |