#include <CCFontAtlas.h>
Public Member Functions | |
FontAtlas (Font &theFont) | |
ctor ( var theFont) | |
FontAtlas ( local theFont) | |
virtual | ~FontAtlas () |
void | addLetterDefinition (const FontLetterDefinition &letterDefinition) |
var | addLetterDefinition ( var letterDefinition) |
local | addLetterDefinition ( local letterDefinition) |
bool | getLetterDefinitionForChar (unsigned short letteCharUTF16, FontLetterDefinition &outDefinition) |
var | getLetterDefinitionForChar ( var letteCharUTF16, var outDefinition) |
local | getLetterDefinitionForChar ( local letteCharUTF16, local outDefinition) |
bool | prepareLetterDefinitions (unsigned short *utf16String) |
const std::unordered_map< int, Texture2D * > & | getTextures () const |
local | getTextures () |
void | addTexture (Texture2D *texture, int slot) |
var | addTexture ( var texture, var slot) |
local | addTexture ( local texture, local slot) |
float | getCommonLineHeight () const |
var | getCommonLineHeight () |
local | getCommonLineHeight () |
void | setCommonLineHeight (float newHeight) |
var | setCommonLineHeight ( var newHeight) |
local | setCommonLineHeight ( local newHeight) |
Texture2D * | getTexture (int slot) |
var | getTexture ( var slot) |
local | getTexture ( local slot) |
const Font * | getFont () const |
var | getFont () |
local | getFont () |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Release the ownership immediately. More... | |
Ref * | autorelease () |
Release the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Static Public Attributes | |
static const int | CacheTextureWidth |
static const int | CacheTextureHeight |
var | CacheTextureHeight |
local | CacheTextureHeight |
Additional Inherited Members | |
Protected Member Functions inherited from Ref | |
Ref () | |
Constructor. More... | |
Protected Attributes inherited from Ref | |
unsigned int | _referenceCount |
count of references More... | |
var ctor | ( | var | theFont) |
local FontAtlas | ( | local | theFont) |
|
virtual |
void addLetterDefinition | ( | const FontLetterDefinition & | letterDefinition) |
var addLetterDefinition | ( | var | letterDefinition) |
local addLetterDefinition | ( | local | letterDefinition) |
void addTexture | ( | Texture2D * | texture, |
int | slot | ||
) |
var addTexture | ( | var | texture, |
var | slot | ||
) |
local addTexture | ( | local | texture, |
local | slot | ||
) |
float getCommonLineHeight | ( | ) | const |
var getCommonLineHeight | ( | ) |
local getCommonLineHeight | ( | ) |
const Font* getFont | ( | ) | const |
var getFont | ( | ) |
local getFont | ( | ) |
bool getLetterDefinitionForChar | ( | unsigned short | letteCharUTF16, |
FontLetterDefinition & | outDefinition | ||
) |
var getLetterDefinitionForChar | ( | var | letteCharUTF16, |
var | outDefinition | ||
) |
local getLetterDefinitionForChar | ( | local | letteCharUTF16, |
local | outDefinition | ||
) |
Texture2D* getTexture | ( | int | slot) |
var getTexture | ( | var | slot) |
local getTexture | ( | local | slot) |
|
inline |
|
inline |
|
inline |
bool prepareLetterDefinitions | ( | unsigned short * | utf16String) |
var prepareLetterDefinitions | ( | var | utf16String) |
local prepareLetterDefinitions | ( | local | utf16String) |
void setCommonLineHeight | ( | float | newHeight) |
var setCommonLineHeight | ( | var | newHeight) |
local setCommonLineHeight | ( | local | newHeight) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |