From ff5a57fb92c301bb706dc87adb55a0ea17ac18b3 Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Tue, 4 Jul 2023 16:13:28 -0500 Subject: [PATCH] Add some convenient rectangle accessors --- src/util/typedefs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/typedefs.h b/src/util/typedefs.h index 05a4e6f..b4a07ad 100644 --- a/src/util/typedefs.h +++ b/src/util/typedefs.h @@ -75,6 +75,11 @@ typedef union f32 w; f32 h; }; + struct + { + vec2 xy; + vec2 wh; + }; f32 c[4]; } mp_rect;