Files
MonoGame.Extended/Source/MonoGame.Extended.Graphics/DrawCall.cs
T
Lucas Girouard-StranksandDylan Wilson 9e359fb750 Tiled Rework (#331)
* Tiled Rework

* fix failing tests

* really fix failing tests
2017-01-18 20:46:38 +10:00

23 lines
636 B
C#

using System;
using System.Runtime.InteropServices;
using Microsoft.Xna.Framework.Graphics;
namespace MonoGame.Extended.Graphics
{
[StructLayout(LayoutKind.Sequential)]
public struct DrawCall<TDrawCallData> : IComparable<DrawCall<TDrawCallData>> where TDrawCallData : IDrawCallData
{
public ulong Key;
public int BaseVertex;
public int StartIndex;
public int PrimitiveCount;
public PrimitiveType PrimitiveType;
public TDrawCallData Data;
public int CompareTo(DrawCall<TDrawCallData> other)
{
return Key.CompareTo(other.Key);
}
}
}