Esempio n. 1
0
 public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     if (_current != null)
     {
         _current.Draw(gameTime, spriteBatch);
     }
     _gameStateManager.Draw(gameTime, spriteBatch);
 }
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.Black);

            spriteBatch.Begin(SpriteSortMode.Deferred, null, null, null, null, null, spriteScale);

            GameStateManager.Draw(gameTime, spriteBatch);

            spriteBatch.End();
        }
Esempio n. 3
0
        /// <summary>
        /// Draws the game world.
        /// </summary>
        /// <param name="gameTime">An object containing information about the time that has passed.</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.Black);

            // start drawing sprites, applying the scaling matrix
            spriteBatch.Begin(SpriteSortMode.Deferred, null, null, null, null, null, spriteScale);

            // let the game world draw itself
            GameStateManager.Draw(gameTime, spriteBatch);

            spriteBatch.End();
        }