void LoadContent(ContentManager content) { Log.WriteLine("Loading renderer content"); NormalmapEffect = content.Load <Effect>(STACK.content.shaders.Normalmap); BloomEffect.LoadContent(content); DrawBuffer = new RenderTarget2D(GraphicsDevice, DisplaySettings.VirtualResolution.X, DisplaySettings.VirtualResolution.Y, true, SurfaceFormat.Color, DepthFormat.Depth24Stencil8, GraphicsDevice.PresentationParameters.MultiSampleCount, RenderTargetUsage.DiscardContents); GUIBuffer = new RenderTarget2D(GraphicsDevice, DisplaySettings.VirtualResolution.X, DisplaySettings.VirtualResolution.Y, true, SurfaceFormat.Color, DepthFormat.Depth24Stencil8, GraphicsDevice.PresentationParameters.MultiSampleCount, RenderTargetUsage.DiscardContents); CurrentRenderTarget = DrawBuffer; WhitePixelTexture = new Texture2D(GraphicsDevice, 1, 1); WhitePixelTexture.SetData <Color>(new[] { Color.White }); DefaultFont = content.Load <SpriteFont>(STACK.content.fonts.stack); _NeoManager.AutoCreateRenderTarget = false; _NeoManager.RenderTarget = GUIBuffer; _NeoManager.Initialize(); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); bloom = new BloomComponent(); bloom.LoadContent(spriteBatch, Content, graphics); bloom.Settings = new BloomSettings("catpants", 0, 2, 1.1f, 0.1f, 1, 1); background = Content.Load <Texture2D>("Braid_screenshot8"); }