Kav/Data/MeshSpriteDrawData.cs

25 lines
691 B
C#
Raw Normal View History

2020-12-10 08:34:06 +00:00
using Microsoft.Xna.Framework;
namespace Kav.Data
{
2020-12-10 21:53:55 +00:00
public struct MeshSpriteDrawData
2020-12-10 08:34:06 +00:00
{
public MeshSprite MeshSprite { get; }
public SpriteBillboardConstraint BillboardConstraint { get; }
public Matrix TransformMatrix { get; }
2020-12-10 21:53:55 +00:00
public UVData UVOffset { get; }
2020-12-10 08:34:06 +00:00
public MeshSpriteDrawData(
MeshSprite meshSprite,
SpriteBillboardConstraint billboardConstraint,
Matrix transformMatrix,
2020-12-10 21:53:55 +00:00
UVData offset
2020-12-10 08:34:06 +00:00
) {
MeshSprite = meshSprite;
BillboardConstraint = billboardConstraint;
TransformMatrix = transformMatrix;
2020-12-10 21:53:55 +00:00
UVOffset = offset;
2020-12-10 08:34:06 +00:00
}
}
}