blob: dd4f1d91d708986a080ed3ffe94e17e9d4dbfd1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#pragma once
#include "UITextMesh.h"
#include "Runtime/Utilities/IIncrementalTask.h"
#include "Font.h"
#include <vector>
// collect unused text mesh gradually
class GraduallyReleaseTextMesh : public IIncrementalTask
{
public:
void Execute() override
{
}
bool IsDone() override
{
}
};
class TextMeshGenerator : public Singleton<TextMeshGenerator>
{
public:
UITextMesh* GetTextMesh(const UnicodeString& str, Font* font, int pixelSize, int lineHeight, Color32 col32, ETextAnchor anchor, ETextAlignment alignment, bool wordwrap, float preferred);
private:
std::vector<UITextMesh*> m_TextMeshes;
};
#define g_TextMeshGenerator (*TextMeshGenerator::Instance())
|