Transitioning text editor to SDL
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user