mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-02 10:16:50 +02:00
Port from git
This commit is contained in:
26
Source/Graphics/FontCache.h
Normal file
26
Source/Graphics/FontCache.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/* 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;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user