2022-04-13 03:06:14 +00:00
|
|
|
using System.Runtime.InteropServices;
|
2022-05-11 17:34:09 +00:00
|
|
|
using MoonWorks.Math.Float;
|
2022-04-13 03:06:14 +00:00
|
|
|
|
|
|
|
namespace MoonWorks.Graphics.Font
|
|
|
|
{
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
2023-12-15 18:46:43 +00:00
|
|
|
public struct Vertex : IVertexType
|
2022-04-13 03:06:14 +00:00
|
|
|
{
|
|
|
|
public Vector3 Position;
|
|
|
|
public Vector2 TexCoord;
|
|
|
|
public Color Color;
|
2023-12-15 18:46:43 +00:00
|
|
|
|
|
|
|
public static VertexElementFormat[] Formats { get; } = new VertexElementFormat[]
|
|
|
|
{
|
|
|
|
VertexElementFormat.Vector3,
|
|
|
|
VertexElementFormat.Vector2,
|
|
|
|
VertexElementFormat.Color
|
|
|
|
};
|
2022-04-13 03:06:14 +00:00
|
|
|
}
|
|
|
|
}
|