public TextRenderState(TextureManager textureManager)
 {
     _textureManager = textureManager;
     _font = new Font(textureManager.Get("font"),
         FontParser.Parse("font.fnt"));
     _helloWorld = new Text("Hello", _font);
 }
 public FPSTestState(TextureManager textureManager)
 {
     _textureManager = textureManager;
     _font = new Font(textureManager.Get("font"),
         FontParser.Parse("font.fnt"));
     _fpsText = new Text("FPS:", _font);
 }
        public DrawSpriteState(TextureManager textureManager)
        {
            _textureManager = textureManager;
            Texture texture = _textureManager.Get("face_alpha");
            Gl.glEnable(Gl.GL_TEXTURE_2D);
            Gl.glBindTexture(Gl.GL_TEXTURE_2D, texture.Id);
            Gl.glEnable(Gl.GL_BLEND);
            Gl.glBlendFunc(Gl.GL_SRC_ALPHA, Gl.GL_ONE_MINUS_SRC_ALPHA);

        }
        public TestWrappedTextState(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 TextTestState(TextureManager textureManager)
        {
            _text.Texture = textureManager.Get("font");

            // Uncomment this to set the U,Vs around only one letter '$'
            //_text.SetUVs(new Point(0.113f, 0), new Point(0.171f, 0.101f));

            // Uncomment these lines to set the '$' character to the correct size
            //_text.SetWidth(15);
            //_text.SetHeight(26);

        }