#pragma once #include #include #include #include #include namespace Game::Renderer { class Font : public Texture { public: Font(const std::string& path, SDL_Renderer* renderer, int ptSize, std::string id = "noname"); Font(const Font&); Font& operator=(const Font&); DISABLE_MOVE(Font); ~Font(); // Build the texture for the font; Call getSDLTexture() afterwards void build(SDL_Color color, std::string text); SDL_Texture* getSDLTexture(); std::string getId(); private: TTF_Font* mFont; SDL_Renderer* mRenderer; }; }