Пример #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();
        }