Kav/Vertices/GBufferInstanceVertex.cs

29 lines
678 B
C#
Raw Normal View History

2020-12-07 21:50:32 +00:00
using System.Runtime.InteropServices;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Kav
{
2020-12-07 21:50:32 +00:00
[StructLayout(LayoutKind.Sequential, Pack = 1)]
2020-12-08 04:10:27 +00:00
public struct GBufferInstanceVertex : IVertexType, IHasWorldMatrix
{
VertexDeclaration IVertexType.VertexDeclaration
{
get
{
return VertexDeclarations.GBufferInstanceDeclaration;
}
}
public Matrix World { get; set; }
public static readonly VertexDeclaration VertexDeclaration;
public GBufferInstanceVertex(
2020-12-07 21:50:32 +00:00
Matrix world
) {
World = world;
}
}
}