cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FontAtlasCache Class Reference

#include <CCFontAtlasCache.h>

Static Public Member Functions

static FontAtlasgetFontAtlasTTF (const TTFConfig &config)
 
static FontAtlasgetFontAtlasFNT (const std::string &fontFileName, const Vec2 &imageOffset=Vec2::ZERO)
 
static FontAtlasgetFontAtlasCharMap (const std::string &charMapFile, int itemWidth, int itemHeight, int startCharMap)
 
static FontAtlasgetFontAtlasCharMap (Texture2D *texture, int itemWidth, int itemHeight, int startCharMap)
 
static FontAtlasgetFontAtlasCharMap (const std::string &plistFile)
 
static bool releaseFontAtlas (FontAtlas *atlas)
 
static void purgeCachedData ()
 Removes cached data. More...
 

Member Function Documentation

static FontAtlas* getFontAtlasCharMap ( const std::string &  charMapFile,
int  itemWidth,
int  itemHeight,
int  startCharMap 
)
static
static FontAtlas* getFontAtlasCharMap ( Texture2D texture,
int  itemWidth,
int  itemHeight,
int  startCharMap 
)
static
static FontAtlas* getFontAtlasCharMap ( const std::string &  plistFile)
static
static FontAtlas* getFontAtlasFNT ( const std::string &  fontFileName,
const Vec2 imageOffset = Vec2::ZERO 
)
static
static FontAtlas* getFontAtlasTTF ( const TTFConfig config)
static
static void purgeCachedData ( )
static

Removes cached data.

It will purge the textures atlas and if multiple texture exist in one FontAtlas.

static bool releaseFontAtlas ( FontAtlas atlas)
static

The documentation for this class was generated from the following file: