My Project
Client
trunk
ParaEngineClient
renderer
OpenGL
GLFontAtlasCache.h
1
#pragma once
2
#include <unordered_map>
3
#include "GLType.h"
4
5
namespace
ParaEngine
6
{
7
class
FontAtlas;
8
class
Texture2D;
9
10
class
FontAtlasCache
11
{
12
public
:
13
static
FontAtlas
* getFontAtlasTTF(
const
TTFConfig
&
config
);
14
15
static
bool
releaseFontAtlas(
FontAtlas
*atlas);
16
20
static
void
purgeCachedData
();
21
22
private
:
23
static
std::string generateFontName(
const
std::string& fontFileName,
int
size, GlyphCollection theGlyphs,
bool
useDistanceField);
24
static
std::unordered_map<std::string, FontAtlas *> _atlasMap;
25
};
26
}
config
Definition:
zip.cpp:328
ParaEngine::FontAtlas
Definition:
GLFontAtlas.h:14
ParaEngine
different physics engine has different winding order.
Definition:
EventBinding.h:32
ParaEngine::FontAtlasCache
Definition:
GLFontAtlasCache.h:10
ParaEngine::FontAtlasCache::purgeCachedData
static void purgeCachedData()
Removes cached data.
Definition:
GLFontAtlasCache.cpp:15
ParaEngine::_ttfConfig
Definition:
GLType.h:31
Generated by
1.8.12