Pioneer
src
FontCache.h
Go to the documentation of this file.
1
// Copyright © 2008-2021 Pioneer Developers. See AUTHORS.txt for details
2
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3
4
#ifndef _FONTCACHE_H
5
#define _FONTCACHE_H
6
7
#include "
RefCounted.h
"
8
#include "
text/TextureFont.h
"
9
#include <map>
10
#include <string>
11
12
class
FontCache
{
13
public
:
14
FontCache
() {}
15
16
RefCountedPtr<Text::TextureFont>
GetTextureFont
(
const
std::string &name);
17
18
private
:
19
FontCache
(
const
FontCache
&);
20
FontCache
&operator=(
const
FontCache
&);
21
22
std::map<std::string, RefCountedPtr<Text::TextureFont>> m_textureFonts;
23
};
24
25
#endif
RefCounted.h
TextureFont.h
FontCache
Definition:
FontCache.h:12
FontCache::GetTextureFont
RefCountedPtr< Text::TextureFont > GetTextureFont(const std::string &name)
Definition:
FontCache.cpp:10
FontCache::FontCache
FontCache()
Definition:
FontCache.h:14
RefCountedPtr< Text::TextureFont >
Generated by
1.9.1