Exemplo n.º 1
0
        public TextMeshData CreateTextMesh(GUIText text)
        {
            List <Line>  lines = CreateStructure(text);
            TextMeshData data  = CreateQuadVertices(text, lines);

            return(data);
        }
Exemplo n.º 2
0
        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);
        }