From be5c7263406aef867501c7965bcced6a7e2898a6 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 29 Sep 2024 16:39:31 +1000 Subject: animation, player movement, physics etc. --- rect.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rect.h') diff --git a/rect.h b/rect.h index 5c89aec..40f5e4e 100644 --- a/rect.h +++ b/rect.h @@ -5,6 +5,8 @@ typedef struct Rect { int x, y, w, h; } Rect; +int rects_overlap(const Rect* a, const Rect* b); +int point_rect_overlap(const Rect* r, int px, int py); Rect* rect_clip(Rect* r, const Rect* c); Rect* rect_clipr(Rect* r, const int* c); Rect* rect_clips(Rect* r, Rect* s, const Rect* c); -- cgit v1.2.3-54-g00ecf