Example #1
0
        public override void Draw(GameTime gameTime)
        {
            if (activeScene != null)
            {
                if (CameraEngine.ActiveCamera != null)
                {
                    activeScene.Draw3D(CameraEngine.ActiveCamera);
                }

                activeScene.DrawUI();

                if (System.Diagnostics.Debugger.IsAttached)
                {
                    debug.Draw(CameraEngine.ActiveCamera);
                }

                GameUtilities.SetGraphicsDeviceFor3D();
            }

            base.Draw(gameTime);
        }