IBatchDrawCallInfo.cs 670 B

12345678910111213141516171819
  1. using Microsoft.Xna.Framework.Graphics;
  2. namespace MonoGame.Extended.Graphics
  3. {
  4. /// <summary>
  5. /// Defines the for a deferred draw call when batching.
  6. /// </summary>
  7. public interface IBatchDrawCallInfo<TDrawCallInfo> where TDrawCallInfo : IBatchDrawCallInfo<TDrawCallInfo>
  8. {
  9. /// <summary>
  10. /// Applies any state from the <see cref="IBatchDrawCallInfo{TDrawCallInfo}" /> to the
  11. /// <see cref="Effect" /> or <see cref="Effect.GraphicsDevice"/>.
  12. /// </summary>
  13. /// <param name="effect">The effect.</param>
  14. void SetState(Effect effect);
  15. bool TryMerge(ref TDrawCallInfo drawCall);
  16. }
  17. }