public void PrepareForDrawing(Point baseSize, bool clear = true) { if (renderTarget == null || renderTarget.Dimensions() != baseSize.DividedBy(cameraTargetPixelSize)) { InitRT(baseSize); } Graphics.Device.SetRenderTarget(renderTarget); Graphics.Device.SetStatesToDefault(); Graphics.Device.Clear(clearColor); }