started on sprite support

This commit is contained in:
maxwes08
2025-12-09 09:49:10 +01:00
parent 35bc49c0f8
commit 2e72dd564e
2 changed files with 46 additions and 2 deletions

17
UISprite.cs Normal file
View File

@@ -0,0 +1,17 @@
using OpenTK.Mathematics;
using System.Drawing;
public class UISprite
{
public Vector2 Position; // Screen pixels (not normalized)
public Vector2 Size; // Size in pixels
public Rectangle TextureRegion; // Which part of atlas to use
public Color Tint = Color.White;
public float Rotation = 0f;
public Vector2 Origin = Vector2.Zero; // Rotation/scale origin
public void Draw()
{
// Draw textured quad using TextureRegion coordinates
}
}