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 SwirlEffectState(TextureManager manager) { _font = new Font(manager.Get("font"), FontParser.Parse("font.fnt")); _text = new Text("Hello", _font); }
public SpriteTweenState(TextureManager textureManager) { _faceSprite.Texture = textureManager.Get("face"); _faceSprite.SetHeight(0); _faceSprite.SetWidth(0); }
public SpecialEffectState(TextureManager manager) { _font = new Font(manager.Get("font"), FontParser.Parse("font.fnt")); _text = new Text("Hello", _font); }
public CharacterBounceState(TextureManager manager) { _font = new Font(manager.Get("font"), FontParser.Parse("font.fnt")); _text = new Text("Hello", _font); }