public void Initialize(GraphicsDevice graphics)
        {
            _graphics = graphics;

            _RadialBlurShader.Initialize(graphics);

            _spriteBatch = new SpriteBatch(graphics);
        }
Exemplo n.º 2
0
        public void Initialize(GraphicsDevice graphics)
        {
            _graphics = graphics;

            _PixelizerShader.Initialize(graphics);
            _RadialBlurShader.Initialize(graphics);
            _spriteBatch = new SpriteBatch(graphics);

            DefaultTexture2D = new RenderTarget2D(graphics, GameSettings.g_ScreenWidth, GameSettings.g_ScreenHeight, false, SurfaceFormat.Color, DepthFormat.None, 0, RenderTargetUsage.DiscardContents);
        }