diff options
| author | chai <chaifix@163.com> | 2021-11-02 21:52:09 +0800 |
|---|---|---|
| committer | chai <chaifix@163.com> | 2021-11-02 21:52:09 +0800 |
| commit | 3898f2c648b1a731dead8337aad8912d2b8b80d7 (patch) | |
| tree | da06ea76f91ead6ba13722dd73ebbd8e8fb9b30c /Runtime/GUI/TextMesh.cpp | |
| parent | 72812a7b47f90f9460e54e8149ba9199a7841244 (diff) | |
*misc
Diffstat (limited to 'Runtime/GUI/TextMesh.cpp')
| -rw-r--r-- | Runtime/GUI/TextMesh.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Runtime/GUI/TextMesh.cpp b/Runtime/GUI/TextMesh.cpp index de9a195..2f66170 100644 --- a/Runtime/GUI/TextMesh.cpp +++ b/Runtime/GUI/TextMesh.cpp @@ -50,6 +50,8 @@ InitializeStaticVariables([]() { s_SizePerText = sizeof(TextMeshVBOLayout) * 4; }); +// 一段文字里面的网格可能会来自不同的atlas,在生成TextMesh时做好合批 + TextMesh::TextMesh(const UnicodeString& str, Font* font,int pixelSize, ETextAnchor anchor, ETextAlignment alignment) { m_Font = font; |
