Exemple #1
0
 protected override void Draw(GameTime gameTime)
 {
     if (this.IsActive)
     {
         _renderer.Render(gameTime);
         _textRenderer.SetText(0, "FPS: " + ((int)(1 / gameTime.ElapsedGameTime.TotalSeconds)), new Vector2(5, _screenHeight - 5), Color.CornflowerBlue);
         _textRenderer.Render(gameTime);
     }
     base.Draw(gameTime);
 }