コード例 #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 SpecialEffectState(TextureManager manager)
 {
     _font = new Font(manager.Get("font"), FontParser.Parse("font.fnt"));
     _text = new Text("Hello", _font);
 }