public override void Init(Engine.GraphicInfo ginfo, Engine.GraphicFactory factory) { spriteBatch = factory.GetSpriteBatch(); GraphicsDevice GraphicsDevice = factory.device; PresentationParameters pp = GraphicsDevice.PresentationParameters; int w = pp.BackBufferWidth; int h = pp.BackBufferHeight; scene = new RenderTarget2D(GraphicsDevice, w, h, false, pp.BackBufferFormat, pp.DepthStencilFormat, pp.MultiSampleCount, RenderTargetUsage.DiscardContents); halfSize = new RenderTarget2D(GraphicsDevice, w / 2, h / 2, false, pp.BackBufferFormat, DepthFormat.None); quarterSize = new RenderTarget2D(GraphicsDevice, w / 4, h / 4, false, pp.BackBufferFormat, DepthFormat.None); quarterSize2 = new RenderTarget2D(GraphicsDevice, w / 4, h / 4, false, pp.BackBufferFormat, DepthFormat.None); }