#ifndef CHICKENGAME_TEXTMANAGER_H #define CHICKENGAME_TEXTMANAGER_H #include #include class TextManager { public: TextManager() {} ~TextManager() { for (auto& it : this->font_cache) { TTF_CloseFont(it.second); } } TextManager(TextManager const&) = delete; void operator=(TextManager const&) = delete; TTF_Font* loadFont(const char* filepath); std::map font_cache; private: }; #endif //CHICKENGAME_TEXTMANAGER_H