Esempio n. 1
0
 private void Rebuild()
 {
     // rebuild
     VertexBuffer.Dispose(ref bufferText);
     if (string.IsNullOrEmpty(text))
     {
         return;
     }
     f.BeginBatch();
     if (!EnableShadow)
     {
         f.RenderText(text, Position.X, Position.Y);
     }
     else
     {
         f.RenderTextShadow(Color, text, Position.X, Position.Y);
     }
     f.StopBatch();
     bufferText = t.GetVertexBuffer();
 }