#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 (char16_t letteCharUTF16, FontLetterDefinition &outDefinition) |
| var | getLetterDefinitionForChar ( var letteCharUTF16, var outDefinition) |
| local | getLetterDefinitionForChar ( local letteCharUTF16, local outDefinition) |
| bool | prepareLetterDefinitions (const std::u16string &utf16String) |
| const std::unordered_map < ssize_t, 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 () |
| void | listenRendererRecreated (EventCustom *event) |
| listen the event that renderer was recreated on Android/WP8 It only has effect on Android and WP8. More... | |
| var | listenRendererRecreated ( var event) |
| listen the event that renderer was recreated on Android/WP8 It only has effect on Android and WP8. More... | |
| local | listenRendererRecreated ( local event) |
| listen the event that renderer was recreated on Android/WP8 It only has effect on Android and WP8. More... | |
| void | purgeTexturesAtlas () |
| Removes textures atlas. More... | |
| void | setAntiAliasTexParameters () |
| sets font texture parameters: More... | |
| void | setAliasTexParameters () |
| sets font texture parameters: More... | |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| void | release () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| Releases 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 |
| var | CacheTextureWidth |
| local | CacheTextureWidth |
| static const int | CacheTextureHeight |
| var | CacheTextureHeight |
| local | CacheTextureHeight |
| static const char * | CMD_PURGE_FONTATLAS |
| var | CMD_PURGE_FONTATLAS |
| local | CMD_PURGE_FONTATLAS |
| static const char * | CMD_RESET_FONTATLAS |
| var | CMD_RESET_FONTATLAS |
| local | CMD_RESET_FONTATLAS |
Protected Member Functions | |
| void | relaseTextures () |
Protected Member Functions inherited from Ref | |
| Ref () | |
| Constructor. More... | |
| Ref () | |
| Constructor. 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 | ( | char16_t | 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 |
| void listenRendererRecreated | ( | EventCustom * | event | ) |
listen the event that renderer was recreated on Android/WP8 It only has effect on Android and WP8.
| var listenRendererRecreated | ( | var | event | ) |
listen the event that renderer was recreated on Android/WP8 It only has effect on Android and WP8.
| local listenRendererRecreated | ( | local | event | ) |
listen the event that renderer was recreated on Android/WP8 It only has effect on Android and WP8.
| bool prepareLetterDefinitions | ( | const std::u16string & | utf16String | ) |
| var prepareLetterDefinitions | ( | var | utf16String | ) |
| local prepareLetterDefinitions | ( | local | utf16String | ) |
| void purgeTexturesAtlas | ( | ) |
Removes textures atlas.
It will purge the textures atlas and if multiple texture exist in the FontAtlas.
| var purgeTexturesAtlas | ( | ) |
Removes textures atlas.
It will purge the textures atlas and if multiple texture exist in the FontAtlas.
| local purgeTexturesAtlas | ( | ) |
Removes textures atlas.
It will purge the textures atlas and if multiple texture exist in the FontAtlas.
|
protected |
|
protected |
|
protected |
| void setAliasTexParameters | ( | ) |
sets font texture parameters:
| var setAliasTexParameters | ( | ) |
sets font texture parameters:
| local setAliasTexParameters | ( | ) |
sets font texture parameters:
| void setAntiAliasTexParameters | ( | ) |
sets font texture parameters:
| var setAntiAliasTexParameters | ( | ) |
sets font texture parameters:
| local setAntiAliasTexParameters | ( | ) |
sets font texture parameters:
| void setCommonLineHeight | ( | float | newHeight | ) |
| var setCommonLineHeight | ( | var | newHeight | ) |
| local setCommonLineHeight | ( | local | newHeight | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |