aboutsummaryrefslogtreecommitdiff
path: root/headers/TZR_render.h
diff options
context:
space:
mode:
Diffstat (limited to 'headers/TZR_render.h')
-rw-r--r--headers/TZR_render.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/headers/TZR_render.h b/headers/TZR_render.h
index 592440c..99132a2 100644
--- a/headers/TZR_render.h
+++ b/headers/TZR_render.h
@@ -41,10 +41,13 @@ int TZR_DrawLine(int x0, int y0, int x1, int y1);
/* Return -1 on error. Draw rectangle at `x`;`y` position of size `w`x`h` in the
* framebuffer. */
+#define TZR_DrawRectangle(...) _TZR_DrawRectangle( \
+ &(const TZR_DrawRectangleArgs){ \
+ .x=0, .y=0, .w=0, .h=0, .fill=false, .center=false, ._=0, __VA_ARGS__ })
#ifdef TZR_PARANOID
[[nodiscard]]
#endif
-int TZR_DrawRectangle(bool fill, int x, int y, int w, int h);
+int _TZR_DrawRectangle(const TZR_DrawRectangleArgs *args);
/* Return -1 on error. Draw texture ressource `id` at `x`;`y` position of
* the framebuffer. */