aboutsummaryrefslogtreecommitdiffstats
path: root/src/text.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2019-09-10 20:13:52 -0400
committerClyne Sullivan <clyne@bitgloo.com>2019-09-10 20:13:52 -0400
commit982605ee21941358080b9e20c9b9b2c2006f2d6a (patch)
treeaa31bb7b6488ad683b66a3dc75426c38dc84f992 /src/text.cpp
parent2349bd2ffdd7b312c4b13e5794f12d2b7613f3b4 (diff)
added Text component and skeleton system
Diffstat (limited to 'src/text.cpp')
-rw-r--r--src/text.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/text.cpp b/src/text.cpp
new file mode 100644
index 0000000..2f5d3c3
--- /dev/null
+++ b/src/text.cpp
@@ -0,0 +1,18 @@
+#include "text.hpp"
+
+void TextSystem::configure([[maybe_unused]] entityx::EntityManager& entities,
+ [[maybe_unused]] entityx::EventManager& events)
+{
+ // TODO load freetype
+}
+
+/**
+ * Draws the text for all entities.
+ */
+void TextSystem::update([[maybe_unused]] entityx::EntityManager& entites,
+ [[maybe_unused]] entityx::EventManager& events,
+ [[maybe_unused]] entityx::TimeDelta dt)
+{
+ // TODO render each Text component's text
+}
+