aboutsummaryrefslogtreecommitdiffstats
path: root/include/font.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/font.hpp')
-rw-r--r--include/font.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/font.hpp b/include/font.hpp
index a520c15..7dc7fc6 100644
--- a/include/font.hpp
+++ b/include/font.hpp
@@ -1,8 +1,9 @@
#ifndef FONT_HPP_
#define FONT_HPP_
-#include <vector>
#include <map>
+#include <memory>
+#include <vector>
#include <color.hpp>
#include <render.hpp>
@@ -28,6 +29,7 @@ private:
static std::string fontFamily;
static std::map<int, std::vector<FT_Info>> fontData;
+ static std::vector<std::unique_ptr<GLfloat>> drawData;
static int currentSize;
static Color currentColor;
@@ -46,6 +48,8 @@ public:
static vec2 putChar(float xx, float yy, char c);
+ static void render(void);
+
static inline int getSize(void)
{ return currentSize; }