mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-15 11:18:53 +01:00
27 lines
520 B
C++
27 lines
520 B
C++
/* This file is subject to the terms and conditions defined in
|
|
* file 'LICENSE.txt', which is part of this source code package.
|
|
*/
|
|
#pragma once
|
|
|
|
#include "Font.h"
|
|
#include <string>
|
|
#include <map>
|
|
|
|
class FontCache
|
|
{
|
|
public:
|
|
void Initialize();
|
|
void DeInitialize();
|
|
FontCache();
|
|
bool LoadFont(std::string font, SDL_Color color);
|
|
Font *GetFont(std::string font);
|
|
|
|
virtual ~FontCache();
|
|
private:
|
|
bool IsInitialized;
|
|
|
|
std::map<std::string, Font *> FontFaceMap;
|
|
|
|
};
|
|
|