aboutsummaryrefslogtreecommitdiff
path: root/rect.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-09-29 16:39:31 +1000
committerquou <quou@disroot.org>2024-09-29 16:39:31 +1000
commitbe5c7263406aef867501c7965bcced6a7e2898a6 (patch)
tree1e7d5d3b435456c9eeb2d094c3288df259246750 /rect.h
parent9ca0a79e9cc784e14c3d8111ccb9ea1a22225472 (diff)
animation, player movement, physics etc.
Diffstat (limited to 'rect.h')
-rw-r--r--rect.h2
1 files changed, 2 insertions, 0 deletions
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);