/// <summary> /// This is called when the game should draw itself. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Draw(GameTime gameTime) { base.Draw(gameTime); graphics.GraphicsDevice.Clear(Color.Black); spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.NonPremultiplied); if (Screen.CurrentScreen != null) { Screen.CurrentScreen.Draw(gameTime); } spriteBatch.End(); if (this.ShowFps) { spriteBatch.Begin(); frameCounter.Draw(); spriteBatch.End(); } }