diff options
Diffstat (limited to 'src/text.hpp')
-rw-r--r-- | src/text.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/text.hpp b/src/text.hpp index f456500..8efe3ae 100644 --- a/src/text.hpp +++ b/src/text.hpp @@ -51,6 +51,9 @@ struct Text { float x; float y; float z; + + Text(std::string _text, float _x, float _y, float _z = 0.0f) : + text(_text), x(_x), y(_y), z(_z) {} }; // Stores texture and placement data for a font at a size. @@ -80,6 +83,8 @@ public: entityx::EventManager& events, entityx::TimeDelta dt) final; + void put(const std::string& font, float x, float y, const std::string& text); + void loadFont(const std::string& name, const std::string& file, int size); private: |