Esempio n. 1
0
        public void Render(float partialStep)
        {
            t.ResetTransformation();
            string       cursorText = "+";
            FontRenderer f          = FontRenderer.Instance;

            t.StartDrawingAlphaTexturedQuads("ascii");
            Vector2 textSize = f.TextSize(cursorText);
            Vector2 Location = Input.Instance.InterpolatedMouseLocation(partialStep);

            f.RenderTextShadow(cursorText, Location.X - textSize.X / 2f, Location.Y - textSize.Y / 2f);
            t.Draw();
        }
Esempio n. 2
0
 public void Render()
 {
     if (string.IsNullOrEmpty(text))
     {
         return;
     }
     if (changed)
     {
         Rebuild();
     }
     changed = false;
     t.StartDrawingAlphaTexturedQuads("ascii");
     t.Draw(bufferText);
 }