Example #1
0
        public Text(string text, Font font)
        {
            _text = text;
            _font = font;

            CreateText(0, 0);
        }
 public FPSTestState(TextureManager textureManager)
 {
     _textureManager = textureManager;
     _font = new Font(textureManager.Get("font"),
         FontParser.Parse("font.fnt"));
     _fpsText = new Text("FPS:", _font);
 }
 public TextRenderState(TextureManager textureManager)
 {
     _textureManager = textureManager;
     _font = new Font(textureManager.Get("font"),
         FontParser.Parse("font.fnt"));
     _helloWorld = new Text("Hello", _font);
 }