Example #1
0
 public TextRenderState(TextureManager textureManager)
 {
     _textureManager = textureManager;
     _font = new Font(textureManager.Get("font"),
         FontParser.Parse("font.fnt"));
     _helloWorld = new Text("Hello", _font);
 }
Example #2
0
 public Text(string text, Font font, int maxWidth)
 {
     _text = text;
     _font = font;
     _maxWidth = maxWidth;
     CreateText(0, 0, _maxWidth);
 }
Example #3
0
 public FramesTestState(TextureManager textureManager)
 {
     _textureManager = textureManager;
     _font = new Font(textureManager.Get("font"),
         FontParser.Parse("font.fnt"));
     _fpsText = new Text("FPS: ", _font);
 }
Example #4
0
        public TextWrapTest(TextureManager textureManager)
        {
            _textureManager = textureManager;
            _font = new Font(textureManager.Get("font"),
                FontParser.Parse("font.fnt"));

            _longText = new Text("The quick brown fox jumps over the lazy dog",
               _font, 400);
        }
 public SpecialEffectState(TextureManager manager)
 {
     _font = new Font(manager.Get("font"), FontParser.Parse("font.fnt"));
     _text = new Text("Hello", _font);
 }
Example #6
0
 public Text(string text, Font font)
     : this(text, font, -1)
 {
 }