Kav/Data/MeshSpriteDrawData.cs

27 lines
766 B
C#
Raw Normal View History

2020-12-10 08:34:06 +00:00
using Microsoft.Xna.Framework;
namespace Kav.Data
{
2020-12-11 00:02:13 +00:00
public struct MeshSpriteDrawData : ICullable
2020-12-10 08:34:06 +00:00
{
public MeshSprite MeshSprite { get; }
public SpriteBillboardConstraint BillboardConstraint { get; }
public Matrix TransformMatrix { get; }
2020-12-11 00:02:13 +00:00
public UVData UVData { get; }
public BoundingBox BoundingBox => MeshSprite.BoundingBox;
2020-12-10 08:34:06 +00:00
public MeshSpriteDrawData(
MeshSprite meshSprite,
SpriteBillboardConstraint billboardConstraint,
Matrix transformMatrix,
2020-12-11 00:02:13 +00:00
UVData uvData
2020-12-10 08:34:06 +00:00
) {
MeshSprite = meshSprite;
BillboardConstraint = billboardConstraint;
TransformMatrix = transformMatrix;
2020-12-11 00:02:13 +00:00
UVData = uvData;
2020-12-10 08:34:06 +00:00
}
}
}