From b7511abf1a1f302b5c7ebf50faaf65b62d7bb6ed Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 2 Nov 2021 09:30:25 +0800 Subject: * TextMesh --- Runtime/GUI/TextMeshGenerator.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Runtime/GUI/TextMeshGenerator.h') diff --git a/Runtime/GUI/TextMeshGenerator.h b/Runtime/GUI/TextMeshGenerator.h index c5992bd..baeaf16 100644 --- a/Runtime/GUI/TextMeshGenerator.h +++ b/Runtime/GUI/TextMeshGenerator.h @@ -1,6 +1,8 @@ #pragma once +#include "TextMesh.h" #include "Runtime/Utilities/IIncrementalTask.h" +#include "Font.h" // 回收长期没有被使用的text mesh class GraduallyReleaseTextMesh : public IIncrementalTask @@ -18,3 +20,15 @@ public: }; + +class TextMeshGenerator : public Singleton +{ +public: + TextMesh* GetTextMesh(const UnicodeString& str); + +private: + + +}; + +#define g_TextMeshGenerator (*TextMeshGenerator::Instance()) \ No newline at end of file -- cgit v1.1-26-g67d0