summaryrefslogtreecommitdiff
path: root/Runtime/GUI/TextMeshGenerator.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-04 19:03:53 +0800
committerchai <chaifix@163.com>2021-11-04 19:03:53 +0800
commit50dfa4050343a25a5a34816cc276ec6ec9cf33ce (patch)
tree20524f80633ee71173db9f13beb92e204b3bfc11 /Runtime/GUI/TextMeshGenerator.h
parentae2c6b26c2453cfb84153c39861a1bcd02479a85 (diff)
*MISC
Diffstat (limited to 'Runtime/GUI/TextMeshGenerator.h')
-rw-r--r--Runtime/GUI/TextMeshGenerator.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Runtime/GUI/TextMeshGenerator.h b/Runtime/GUI/TextMeshGenerator.h
index 94bcaa2..3598cb0 100644
--- a/Runtime/GUI/TextMeshGenerator.h
+++ b/Runtime/GUI/TextMeshGenerator.h
@@ -3,8 +3,9 @@
#include "UITextMesh.h"
#include "Runtime/Utilities/IIncrementalTask.h"
#include "Font.h"
+#include <vector>
-// 回收长期没有被使用的text mesh
+// collect unused text mesh gradually
class GraduallyReleaseTextMesh : public IIncrementalTask
{
public:
@@ -20,14 +21,13 @@ public:
};
-
class TextMeshGenerator : public Singleton<TextMeshGenerator>
{
public:
UITextMesh* GetTextMesh(const UnicodeString& str);
private:
-
+ std::vector<UITextMesh*> m_TextMeshes;
};