cocos2d-x  3.0
 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 Point &imageOffset=Point::ZERO)
local getFontAtlasFNT ( local fontFileName, local ZERO)
static FontAtlasgetFontAtlasCharMap (const std::string &charMapFile, int itemWidth, int itemHeight, int startCharMap)
var getFontAtlasCharMap ( var charMapFile, var itemWidth, var itemHeight, var startCharMap)
local getFontAtlasCharMap ( local charMapFile, local itemWidth, local itemHeight, local startCharMap)
static FontAtlasgetFontAtlasCharMap (Texture2D *texture, int itemWidth, int itemHeight, int startCharMap)
local getFontAtlasCharMap ( local texture, local itemWidth, local itemHeight, local 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
var getFontAtlasCharMap ( var  charMapFile,
var  itemWidth,
var  itemHeight,
var  startCharMap 
)
static
local getFontAtlasCharMap ( local  charMapFile,
local  itemWidth,
local  itemHeight,
local  startCharMap 
)
static
static FontAtlas*
getFontAtlasCharMap
( Texture2D texture,
int  itemWidth,
int  itemHeight,
int  startCharMap 
)
static
var getFontAtlasCharMap ( var  texture,
var  itemWidth,
var  itemHeight,
var  startCharMap 
)
static
local getFontAtlasCharMap ( local  texture,
local  itemWidth,
local  itemHeight,
local  startCharMap 
)
static
static FontAtlas*
getFontAtlasCharMap
( const std::string &  plistFile)
static
var getFontAtlasCharMap ( var  plistFile)
static
local getFontAtlasCharMap ( local  plistFile)
static
static FontAtlas* getFontAtlasFNT ( const std::string &  fontFileName,
const Point imageOffset = Point::ZERO 
)
static
var getFontAtlasFNT ( var  fontFileName,
var  imageOffset = Point::ZERO 
)
static
local getFontAtlasFNT ( local  fontFileName,
local  imageOffset = Point::ZERO 
)
static
static FontAtlas* getFontAtlasTTF ( const TTFConfig config)
static
var getFontAtlasTTF ( var  config)
static
local getFontAtlasTTF ( local  config)
static
static void purgeCachedData ( )
static

Removes cached data.

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

var purgeCachedData ( )
static

Removes cached data.

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

local 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
var releaseFontAtlas ( var  atlas)
static
local releaseFontAtlas ( local  atlas)
static

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