Пример #1
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)
        {
            // Clear the backbuffer
            graphics.GraphicsDevice.Clear(Color.CornflowerBlue);

            //TODO: Add your drawing code here
            base.Draw(gameTime);

            curRenderer.DoUpdate(graphics.GraphicsDevice);
        }
Пример #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)
        {
            graphics.GraphicsDevice.Clear(Color.CornflowerBlue);

            curRenderer.DoUpdate(graphics.GraphicsDevice);

            batch.Begin(SpriteSortMode.Deferred, null, null, null, null, null, null);

            batch.End();
            base.Draw(gameTime);
        }