Add some convenient rectangle accessors
This commit is contained in:
parent
36c75a55dd
commit
ff5a57fb92
|
@ -75,6 +75,11 @@ typedef union
|
|||
f32 w;
|
||||
f32 h;
|
||||
};
|
||||
struct
|
||||
{
|
||||
vec2 xy;
|
||||
vec2 wh;
|
||||
};
|
||||
f32 c[4];
|
||||
} mp_rect;
|
||||
|
||||
|
|
Loading…
Reference in New Issue