2019-01-02 01:47:08 -08:00
|
|
|
// Copyright © 2008-2019 Pioneer Developers. See AUTHORS.txt for details
|
2012-09-15 17:59:15 -07:00
|
|
|
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
|
2012-09-12 04:38:30 -07:00
|
|
|
|
2012-04-07 14:11:26 -07:00
|
|
|
#ifndef _FONTCACHE_H
|
|
|
|
#define _FONTCACHE_H
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
|
|
|
#include "RefCounted.h"
|
|
|
|
#include "text/TextureFont.h"
|
|
|
|
|
|
|
|
class FontCache {
|
|
|
|
public:
|
|
|
|
FontCache() {}
|
|
|
|
|
|
|
|
RefCountedPtr<Text::TextureFont> GetTextureFont(const std::string &name);
|
|
|
|
|
|
|
|
private:
|
|
|
|
FontCache(const FontCache &);
|
|
|
|
FontCache &operator=(const FontCache &);
|
|
|
|
|
|
|
|
std::map< std::string,RefCountedPtr<Text::TextureFont> > m_textureFonts;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|