From 927348d9d8eb16b469c23ef32486bea5f94c5469 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 17 Sep 2019 15:06:39 -0400 Subject: made VBO rendering accessible --- src/text.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/text.hpp') 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: -- cgit v1.2.3