15 lines
313 B
C#
15 lines
313 B
C#
using OpenTK.Mathematics;
|
|
|
|
struct UiVertex
|
|
{
|
|
public Vector2 Position;
|
|
public Vector2 TexCoord;
|
|
public Vector4 Color;
|
|
|
|
public UiVertex(float x, float y, float u, float v, Vector4 color)
|
|
{
|
|
Position = new Vector2(x, y);
|
|
TexCoord = new Vector2(u, v);
|
|
Color = color;
|
|
}
|
|
} |