added barebones ui rendering

This commit is contained in:
2026-04-20 15:36:30 +02:00
parent 96c1faa626
commit a324ff0d16
9 changed files with 230 additions and 6 deletions

15
UI/UiVertex.cs Normal file
View File

@@ -0,0 +1,15 @@
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;
}
}