Transitioning text editor to SDL

This commit is contained in:
Krzosa Karol
2024-07-26 17:08:05 +02:00
parent def8b6bdc2
commit 27b322bf25
11 changed files with 67 additions and 695 deletions

View File

@@ -8,6 +8,13 @@ struct Rect2I {
Vec2I max;
};
struct Color {
uint8_t r;
uint8_t g;
uint8_t b;
uint8_t a;
};
Vec2I GetSize(Rect2I r) {
Vec2I result = {r.max.x - r.min.x, r.max.y - r.min.y};
return result;