|
static const int | CacheTextureWidth = 512 |
|
static const int | CacheTextureHeight = 512 |
|
static const char * | CMD_PURGE_FONTATLAS = "__cc_PURGE_FONTATLAS" |
|
static const char * | CMD_RESET_FONTATLAS = "__cc_RESET_FONTATLAS" |
|
|
void | reset () |
|
void | releaseTextures () |
|
void | findNewCharacters (const std::u16string &u16Text, std::unordered_map< unsigned short, unsigned short > &charCodeMap) |
|
void | conversionU16TOGB2312 (const std::u16string &u16Text, std::unordered_map< unsigned short, unsigned short > &charCodeMap) |
|
void | scaleFontLetterDefinition (float scaleFactor) |
| Scale each font letter by scaleFactor. More...
|
|
|
std::unordered_map< size_t, Texture2D * > | _atlasTextures |
|
std::unordered_map< char16_t, FontLetterDefinition > | _letterDefinitions |
|
float | _lineHeight |
|
Font * | _font |
|
FontFreeType * | _fontFreeType |
|
void * | _iconv |
|
int | _currentPage |
|
unsigned char * | _currentPageData |
|
int | _currentPageDataSize |
|
float | _currentPageOrigX |
|
float | _currentPageOrigY |
|
int | _letterPadding |
|
int | _letterEdgeExtend |
|
int | _fontAscender |
|
bool | _antialiasEnabled |
|
int | _currLineHeight |
|
int | m_refcount |
|
§ purgeTexturesAtlas()
void FontAtlas::purgeTexturesAtlas |
( |
| ) |
|
Removes textures atlas.
It will purge the textures atlas and if multiple texture exist in the FontAtlas.
§ scaleFontLetterDefinition()
void FontAtlas::scaleFontLetterDefinition |
( |
float |
scaleFactor | ) |
|
|
protected |
Scale each font letter by scaleFactor.
- Parameters
-
scaleFactor | A float scale factor for scaling font letter info. |
§ setAliasTexParameters()
void FontAtlas::setAliasTexParameters |
( |
| ) |
|
sets font texture parameters:
- GL_TEXTURE_MIN_FILTER = GL_NEAREST
- GL_TEXTURE_MAG_FILTER = GL_NEAREST
§ setAntiAliasTexParameters()
void FontAtlas::setAntiAliasTexParameters |
( |
| ) |
|
sets font texture parameters:
- GL_TEXTURE_MIN_FILTER = GL_LINEAR
- GL_TEXTURE_MAG_FILTER = GL_LINEAR
The documentation for this class was generated from the following files:
- Client/trunk/ParaEngineClient/renderer/OpenGL/GLFontAtlas.h
- Client/trunk/ParaEngineClient/renderer/OpenGL/GLFontAtlas.cpp