Example #1
0
 /// <summary>
 /// Inicia el render para dibujar.
 /// </summary>
 public void Begin()
 {
     Manager.GameInstance.GraphicsDevice.Clear(ClearColor);
     Manager.GraphicsDevice.SetRenderTarget(renderTarget);
     SpriteBatch.Begin(0, BlendFactory.GetBlendState(currentBlendFilter));
     Manager.Graphics.ClearScreen();
 }
Example #2
0
        internal void SetBlendFilter(BlendFilters filter)
        {
            if (filter != this.currentBlendFilter)
            {
                SpriteBatch.End();

                SpriteBatch.Begin(0, BlendFactory.GetBlendState(filter));
                currentBlendFilter = filter;
            }
        }