#ifndef TEXTDRAWER_H #define TEXTDRAWER_H #include #include "Graphics/ShaderProgram.h" #include "Graphics/FramebufferTextureFormats.h" struct Atlas; class TextDrawer { public: void init(); void destroy(); void drawText(const char *_pText, float x, float y) const; void getTextSize(const char *_pText, float & _w, float & _h) const; void setTextColor(float * _color); private: std::unique_ptr m_atlas; std::unique_ptr m_program; }; extern TextDrawer g_textDrawer; #endif // TEXTDRAWER_H