/// <summary> /// Ends rendering /// </summary> public override void End(bool endEffect = false) { isClipped = false; isSpriteRenderInProgress = false; if (endEffect) { currentActiveEffect = null; } else { activeEffects.Push(currentActiveEffect); currentActiveEffect = null; } spriteBatch.End(); }
protected override void Draw() { base.Draw(); if (this.ShowInfo && this.XnaFont != null) { UpdateInfoText(); sprite.Begin(); sprite.DrawStringEx(this.XnaFont, this.sbInfo, Vector2.Zero, Color.Black); sprite.End(); } }