コード例 #1
0
 public TextRenderState(TextureManager textureManager)
 {
     _textureManager = textureManager;
     _font = new Font(textureManager.Get("font"),
         FontParser.Parse("font.fnt"));
     _helloWorld = new Text("Hello", _font);
 }
コード例 #2
0
 public FramesTestState(TextureManager textureManager)
 {
     _textureManager = textureManager;
     _font = new Font(textureManager.Get("font"),
         FontParser.Parse("font.fnt"));
     _fpsText = new Text("FPS: ", _font);
 }
コード例 #3
0
ファイル: TextWrapTest.cs プロジェクト: hnerud/GameRendering
        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);
        }
コード例 #4
0
 public void Render()
 {
     Gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
     Gl.glClear(Gl.GL_COLOR_BUFFER_BIT);
     _fpsText = new Text("FPS: " + _fps.CurrentFPS.ToString("00.0"), _font);
     _renderer.DrawText(_fpsText);
     _renderer.Render();
     for (int i = 0; i<1000; i++)
        {
       _renderer.DrawText(_fpsText);
     }
 }
コード例 #5
0
 public SpecialEffectState(TextureManager manager)
 {
     _font = new Font(manager.Get("font"), FontParser.Parse("font.fnt"));
     _text = new Text("Hello", _font);
 }