Exemple #1
0
        /// <summary>
        /// Called at the end of every frame - handles all graphical updates
        /// </summary>
        /// <param name="gameTime">Time since game started</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(backgroundColor);

            // TODO: Add your drawing code here
            SpriteBatch.Begin();

            if (currentActiveMenu != null)
            {
                currentActiveMenu.Draw(SpriteBatch);
            }

            SpriteBatch.End();

            base.Draw(gameTime);
        }