auto clear chars from tile font.

This commit is contained in:
2022-02-21 17:13:12 +08:00
parent eb30999133
commit fe730defb7
9 changed files with 70 additions and 24 deletions

View File

@@ -101,6 +101,7 @@ namespace hgl
int draw_chars_count; ///<要绘制字符列表
SortedSets<u32char> chars_sets; ///<不重复字符统计缓冲区
SortedSets<u32char> clear_chars_sets; ///<待清除的字符合集
TileUVFloatMap chars_uv; ///<所有要绘制字符的uv
struct CharDrawAttr
@@ -111,7 +112,7 @@ namespace hgl
ObjectList<CharDrawAttr> draw_chars_list; ///<所有字符属性列表
template<typename T> bool preprocess(TileFont *,const T *,const int);
template<typename T> bool preprocess(TextRenderable *,TileFont *,const T *,const int);
protected: