/// <inheritdoc/>
 public override void Draw(GameTime gameTime)
 {
     if (Visible)
     {
         EnsureInitialized();
         _console.Draw();
     }
 }
예제 #2
0
        /// <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)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            this.spriteBatch.Begin();
            Console.Draw(this.spriteBatch);
            this.spriteBatch.End();

            base.Draw(gameTime);
        }