feat(gx): implement GxuFontClearBatch

This commit is contained in:
phaneron 2023-08-16 19:24:24 -04:00
parent 647d2b622f
commit 8a7d89b52f
2 changed files with 12 additions and 0 deletions

View file

@ -337,6 +337,16 @@ int32_t GxuFontDestroyBatch(CGxStringBatch* batch) {
return 1;
}
int32_t GxuFontClearBatch(CGxStringBatch* batch) {
if (!batch) {
return 0;
}
batch->m_fontBatch.Clear();
return batch != 0;
}
void GxuFontDestroyFont(CGxFont*& font) {
if (font) {
g_fonts.DeleteNode(font);