Add some convenient rectangle accessors

This commit is contained in:
Ben Visness 2023-07-04 16:13:28 -05:00
parent 36c75a55dd
commit ff5a57fb92
1 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,11 @@ typedef union
f32 w; f32 w;
f32 h; f32 h;
}; };
struct
{
vec2 xy;
vec2 wh;
};
f32 c[4]; f32 c[4];
} mp_rect; } mp_rect;