26 lines
470 B
C#
26 lines
470 B
C#
using System.Numerics;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Nerfed.Runtime.Graphics;
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public struct FontVertex : IVertexType
|
|
{
|
|
public Vector3 Position;
|
|
public Vector2 TexCoord;
|
|
public Color Color;
|
|
|
|
public static VertexElementFormat[] Formats { get; } =
|
|
[
|
|
VertexElementFormat.Vector3,
|
|
VertexElementFormat.Vector2,
|
|
VertexElementFormat.Color
|
|
];
|
|
|
|
public static uint[] Offsets { get; } =
|
|
[
|
|
0,
|
|
12,
|
|
20
|
|
];
|
|
} |