mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(gx): implement GxuFontClearBatch
This commit is contained in:
parent
647d2b622f
commit
8a7d89b52f
2 changed files with 12 additions and 0 deletions
|
|
@ -337,6 +337,16 @@ int32_t GxuFontDestroyBatch(CGxStringBatch* batch) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t GxuFontClearBatch(CGxStringBatch* batch) {
|
||||||
|
if (!batch) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
batch->m_fontBatch.Clear();
|
||||||
|
|
||||||
|
return batch != 0;
|
||||||
|
}
|
||||||
|
|
||||||
void GxuFontDestroyFont(CGxFont*& font) {
|
void GxuFontDestroyFont(CGxFont*& font) {
|
||||||
if (font) {
|
if (font) {
|
||||||
g_fonts.DeleteNode(font);
|
g_fonts.DeleteNode(font);
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,8 @@ int32_t GxuFontCreateString(CGxFont*, const char*, float, const C3Vector&, float
|
||||||
|
|
||||||
int32_t GxuFontDestroyBatch(CGxStringBatch*);
|
int32_t GxuFontDestroyBatch(CGxStringBatch*);
|
||||||
|
|
||||||
|
int32_t GxuFontClearBatch(CGxStringBatch* batch);
|
||||||
|
|
||||||
void GxuFontDestroyFont(CGxFont*& font);
|
void GxuFontDestroyFont(CGxFont*& font);
|
||||||
|
|
||||||
void GxuFontDestroyString(CGxString*&);
|
void GxuFontDestroyString(CGxString*&);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue