Exemple #1
0
        protected override void Draw(GameTime gameTime)
        {
            graphics.GraphicsDevice.Clear(ClearOptions.DepthBuffer,
                                          Color.CornflowerBlue, 1.0f, 0);

            base.Draw(gameTime);

            currentScreen.Render();
        }
Exemple #2
0
        /// <summary>
        /// Renders this scene. The base class renders everything in the sceen graph and then calls any overlays to
        /// get them to render themselves
        /// </summary>
        public virtual void Render()
        {
            //Render this scene then any overlays
            scene.Render();

            if (overlay != null)
            {
                overlay.Render();
            }
        }