public TextMeshData CreateTextMesh(GUIText text) { List <Line> lines = CreateStructure(text); TextMeshData data = CreateQuadVertices(text, lines); return(data); }
public static void LoadText(GUIText text) { FontType font = text.Font; TextMeshData data = font.LoadText(text); int vao = Loader.LoadToVao(data.VertexPositions, data.TextureCoords); text.SetMeshInfo(vao, data.GetVertexCount()); List <GUIText> textBatch; Texts.TryGetValue(font, out textBatch); if (textBatch == null) { textBatch = new List <GUIText>(); Texts.Add(font, textBatch); } textBatch.Add(text); }