Example #1
0
        /// <summary>
        /// We will just take over the whole rendering of this scene :)
        /// </summary>
        /// <param name="device"></param>
        public override void Draw(GraphicsDevice device)
        {
            if (HasInit == false)
            {
                return;
            }

            if (FSOEnvironment.SoftwareDepth)
            {
                PPXDepthEngine.DrawBackbuffer();
                return;
            }

            InternalDraw(device);
        }
Example #2
0
        /// <summary>
        /// We will just take over the whole rendering of this scene :)
        /// </summary>
        /// <param name="device"></param>
        public override void Draw(GraphicsDevice device)
        {
            if (HasInit == false)
            {
                return;
            }

            FrameCounter++;
            if (FrameCounter < LastCacheClear + 60 * 60)
            {
                State._2D.ClearTextureCache();
            }
            if (!UseBackbuffer)
            {
                InternalDraw(device);
            }
            else
            {
                PPXDepthEngine.DrawBackbuffer(Opacity);
            }
            return;
        }