예제 #1
0
 public FPSTestState(TextureManager textureManager)
 {
     _textureManager = textureManager;
     _font = new Font(textureManager.Get("font"),
         FontParser.Parse("font.fnt"));
     _fpsText = new Text("FPS:", _font);
 }
예제 #2
0
 public Text(string text, Font font, int maxWidth)
 {
     _text = text;
     _font = font;
     _maxWidth = maxWidth;
     CreateText(0, 0, _maxWidth);
 }
 public SwirlEffectState(TextureManager manager)
 {
     _font = new Font(manager.Get("font"), FontParser.Parse("font.fnt"));
     _text = new Text("Hello", _font);
 }
예제 #4
0
 public Text(string text, Font font) : this(text, font, -1) { }