From 259237fae792e8f19d9b7920b2354f75bc1789e2 Mon Sep 17 00:00:00 2001 From: quou Date: Mon, 23 Sep 2024 21:11:29 +1000 Subject: initial commit, basic platform and rendering code. --- rect.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 rect.h (limited to 'rect.h') diff --git a/rect.h b/rect.h new file mode 100644 index 0000000..5c89aec --- /dev/null +++ b/rect.h @@ -0,0 +1,13 @@ +#ifndef rect_h +#define rect_h + +typedef struct Rect { + int x, y, w, h; +} Rect; + +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); +Rect* rect_clipsr(Rect* r, Rect* s, const int* c); + +#endif -- cgit v1.2.3-54-g00ecf