コード例 #1
0
        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);
        }