| cocos2d-x 3.0 |
)- 类列表 - 类索引 - 类继承关系 - 类成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
Public 成员函数 | 静态 Public 属性 | 所有成员列表
FontAtlas类 参考
#include
类 FontAtlas 继承关系图:
| ## Public 成员函数 | |
| FontAtlas (Font &theFont) | |
| ctor 更多… | |
| virtual | ~FontAtlas () |
| NA NA 更多… | |
| void | addLetterDefinition (const FontLetterDefinition &letterDefinition) |
| bool | getLetterDefinitionForChar (char16_t letteCharUTF16, FontLetterDefinition &outDefinition) |
| bool | prepareLetterDefinitions (const std::u16string &utf16String) |
| const std::unordered_map < ssize_t, Texture2D > & | getTextures () const |
| void | addTexture (Texture2D texture, int slot) |
| float | getCommonLineHeight () const |
| void | setCommonLineHeight (float newHeight) |
| Texture2D | getTexture (int slot) |
| const Font | getFont () const |
| void | listenToBackground (EventCustom event) |
| 监听"come to background"消息并清除纹理集。 仅在Android系统有效。 更多… | |
| void | listenToForeground (EventCustom event) |
| 监听"come to foreground"消息并恢复纹理集。 仅在Android系统有效。 更多… | |
| void | purgeTexturesAtlas () |
| 删除纹理集。 如果FontAtlas存在多个纹理集会一并清除。 更多… | |
| void | setAntiAliasTexParameters () |
| 设置字体文理参数: 更多… | |
| void | setAliasTexParameters () |
| 设置字体文理参数: 更多… | |
Public 成员函数 继承自 Ref | |
| void | retain () |
| 保留所有权. 更多… | |
| void | release () |
| 立即释放所有权. 更多… | |
| Ref * | autorelease () |
| 自动释放所有权在不久的将来. 更多… | |
| unsigned int | getReferenceCount () const |
| 返回Ref对象当前的引用计数. 更多… | |
| virtual | ~Ref () |
| NA NA 更多… | |
| ## 静态 Public 属性 | |
| static const int | CacheTextureWidth |
| static const int | CacheTextureHeight |
| static const char * | EVENT_PURGE_TEXTURES |
| ## 额外继承的成员函数 | |
Protected 成员函数 继承自 Ref | |
| Ref () | |
| 构造函数 更多… | |
Protected 属性 继承自 Ref | |
| unsigned int | _referenceCount |
| 引用计数 更多… | |
构造及析构函数说明
| FontAtlas | ( | Font & | theFont | ) |
ctor
| virtual |
NA NA
成员函数说明
| void addLetterDefinition | ( | const FontLetterDefinition & | letterDefinition | ) |
| void addTexture | ( | Texture2D * | texture, |
| int | slot | ||
| ) |
| float getCommonLineHeight | ( | ) | const |
| const Font* getFont | ( | ) | const |
| bool getLetterDefinitionForChar | ( | char16_t | letteCharUTF16, |
| FontLetterDefinition & | outDefinition | ||
| ) |
| Texture2D* getTexture | ( | int | slot | ) |
| inline |
| void listenToBackground | ( | EventCustom * | event | ) |
监听"come to background"消息并清除纹理集。 仅在Android系统有效。
| void listenToForeground | ( | EventCustom * | event | ) |
监听"come to foreground"消息并恢复纹理集。 仅在Android系统有效。
| bool prepareLetterDefinitions | ( | const std::u16string & | utf16String | ) |
| void purgeTexturesAtlas | ( | ) |
删除纹理集。 如果FontAtlas存在多个纹理集会一并清除。
| void setAliasTexParameters | ( | ) |
设置字体文理参数:
- GL_TEXTURE_MIN_FILTER = GL_NEAREST
- GL_TEXTURE_MAG_FILTER = GL_NEAREST 译者注:最近像素插值缩放,可能会有锯齿感。
| void setAntiAliasTexParameters | ( | ) |
设置字体文理参数:
- GL_TEXTURE_MIN_FILTER = GL_LINEAR
- GL_TEXTURE_MAG_FILTER = GL_LINEAR 译者注:线性缩放,无锯齿但可能会有模糊感。
| void setCommonLineHeight | ( | float | newHeight | ) |
类成员变量说明
| static |
| static |
| static |
该类的文档由以下文件生成:
- /Users/zeroyang/Documents/github/cocos2d-x/cocos/2d/CCFontAtlas.h
Public 成员函数 继承自 
