Files
MonoGame.Extended/source/MonoGame.Extended.Graphics/IBatchDrawCallInfo.cs
T
2024-05-18 19:59:41 -04:00

19 lines
670 B
C#

using Microsoft.Xna.Framework.Graphics;
namespace MonoGame.Extended.Graphics
{
/// <summary>
/// Defines the for a deferred draw call when batching.
/// </summary>
public interface IBatchDrawCallInfo<TDrawCallInfo> where TDrawCallInfo : IBatchDrawCallInfo<TDrawCallInfo>
{
/// <summary>
/// Applies any state from the <see cref="IBatchDrawCallInfo{TDrawCallInfo}" /> to the
/// <see cref="Effect" /> or <see cref="Effect.GraphicsDevice"/>.
/// </summary>
/// <param name="effect">The effect.</param>
void SetState(Effect effect);
bool TryMerge(ref TDrawCallInfo drawCall);
}
}