cocos2d-x  3.3rc0
 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)
var getFontAtlasTTF ( var config)
local getFontAtlasTTF ( local config)
static FontAtlasgetFontAtlasFNT (const std::string &fontFileName, const Vec2 &imageOffset=Vec2::ZERO)
var getFontAtlasFNT ( var fontFileName, var 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)
var getFontAtlasCharMap ( var texture, var itemWidth, var itemHeight, var startCharMap)
local getFontAtlasCharMap ( local texture, local itemWidth, local itemHeight, local startCharMap)
static FontAtlasgetFontAtlasCharMap (const std::string &plistFile)
var getFontAtlasCharMap ( var plistFile)
local getFontAtlasCharMap ( local plistFile)
static bool releaseFontAtlas (FontAtlas *atlas)
local releaseFontAtlas ( local atlas)
static void purgeCachedData ()
 Removes cached data. More...
 
var purgeCachedData ()
 Removes cached data. More...
 
local 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 Vec2 imageOffset = Vec2::ZERO 
)
static
var getFontAtlasFNT ( var  fontFileName,
var  imageOffset = Vec2::ZERO 
)
static
local getFontAtlasFNT ( local  fontFileName,
local  imageOffset = Vec2::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: