diff options
author | quou <quou@disroot.org> | 2024-09-29 16:39:31 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-09-29 16:39:31 +1000 |
commit | be5c7263406aef867501c7965bcced6a7e2898a6 (patch) | |
tree | 1e7d5d3b435456c9eeb2d094c3288df259246750 /rect.h | |
parent | 9ca0a79e9cc784e14c3d8111ccb9ea1a22225472 (diff) |
animation, player movement, physics etc.
Diffstat (limited to 'rect.h')
-rw-r--r-- | rect.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |