Paint.BaseGame.BlankRenderTarget C# (CSharp) Method

BlankRenderTarget() protected method

Blanks the render target.
protected BlankRenderTarget ( RenderTarget2D renderTarget ) : void
renderTarget Microsoft.Xna.Framework.Graphics.RenderTarget2D /// Render target. ///
return void
        protected void BlankRenderTarget(RenderTarget2D renderTarget)
        {
            var device = this.GraphicsDeviceManager.GraphicsDevice;

            device.SetRenderTarget(renderTarget);

            this.GraphicsDisplay.BeginRender();

            this.GraphicsDisplay.DrawGraphic(ImageType.EmptySquare, renderTarget.Bounds, this.BackgroundColor);

            this.GraphicsDisplay.EndRender();
        }