Beispiel #1
0
        public override void Draw(GameTime gameTime)
        {
            // run the pre processor
            PreProcessor.Apply();

            GraphicsDevice.SetRenderTarget(_renderTarget);
            GraphicsDevice.Clear(Color.Black);

            if (CurrentScene != null)
            {
                CurrentScene.Draw();
            }

            PostProcessor.Apply(_renderTarget, null);

            base.Draw(gameTime);
        }