added helper function to git

This commit is contained in:
2026-07-05 20:55:17 -07:00
parent cfd05df3f5
commit d7a0dfa858
5 changed files with 252 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#include <stdint.h>
namespace UwU {
struct Color {
Color(uint32_t hex);
Color();
uint8_t r;
uint8_t g;
uint8_t b;
uint8_t a;
};
struct Coord2 {
Coord2(uint32_t x, uint32_t y);
Coord2();
uint32_t x;
uint32_t y;
};
struct Trapezoid {
Trapezoid(uint16_t y0, uint16_t y1, uint16_t xl0, uint16_t xl1, uint16_t xr0, uint16_t xr1);
Trapezoid();
uint16_t y0;
uint16_t y1;
uint16_t xl0;
uint16_t xl1;
uint16_t xr0;
uint16_t xr1;
};
}