My Project
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 
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 }
Definition: zip.cpp:328
Definition: GLFontAtlas.h:14
different physics engine has different winding order.
Definition: EventBinding.h:32
Definition: GLFontAtlasCache.h:10
static void purgeCachedData()
Removes cached data.
Definition: GLFontAtlasCache.cpp:15
Definition: GLType.h:31