diff options
author | quou <quou@disroot.org> | 2024-09-23 21:11:29 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-09-23 21:11:29 +1000 |
commit | 259237fae792e8f19d9b7920b2354f75bc1789e2 (patch) | |
tree | af079430f30f7df1b76efc4f96f520b0b6eee0af /rect.h |
initial commit, basic platform and rendering code.
Diffstat (limited to 'rect.h')
-rw-r--r-- | rect.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |