![]() |
Kiwano Engine
v1.2.x
|
纹理缓存 更多...
#include <Font.h>
Public 成员函数 | |
void | AddFont (size_t key, FontPtr font) |
添加字体缓存 | |
void | AddFontByFamily (const String &font_family, FontPtr font) |
添加字体族映射字体缓存 | |
FontPtr | GetFont (size_t key) const |
获取字体缓存 | |
FontPtr | GetFontByFamily (const String &font_family) const |
获取字体族映射字体缓存 | |
void | RemoveFont (size_t key) |
移除字体缓存 | |
void | RemoveFontByFamily (const String &font_family) |
移除字体族映射字体缓存 | |
void | Clear () |
清空缓存 | |
额外继承的成员函数 | |
![]() | |
using | object_type = FontCache |
![]() | |
static object_type & | GetInstance () |
static object_type * | GetInstancePtr () |
![]() | |
Singleton (const Singleton &)=delete | |
Singleton & | operator= (const Singleton &)=delete |
![]() | |
static FontCache | instance_ |
纹理缓存