forked from MoonsideGames/MoonWorks
21 lines
448 B
C#
21 lines
448 B
C#
using System.Runtime.InteropServices;
|
|
using MoonWorks.Math.Float;
|
|
|
|
namespace MoonWorks.Graphics.Font
|
|
{
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public struct Vertex : IVertexType
|
|
{
|
|
public Vector3 Position;
|
|
public Vector2 TexCoord;
|
|
public Color Color;
|
|
|
|
public static VertexElementFormat[] Formats { get; } = new VertexElementFormat[]
|
|
{
|
|
VertexElementFormat.Vector3,
|
|
VertexElementFormat.Vector2,
|
|
VertexElementFormat.Color
|
|
};
|
|
}
|
|
}
|