aboutsummaryrefslogtreecommitdiff
path: root/headers/TZR_types.h
diff options
context:
space:
mode:
authorkdx <kdx.42@42l.fr>2023-03-28 07:25:59 +0000
committerkdx <kdx.42@42l.fr>2023-03-28 07:27:10 +0000
commite46475cdd2e0a9cff9330ec88d08640f19164b42 (patch)
tree1e8817249778130e4810cfa34dd9dd27e66df8dc /headers/TZR_types.h
parent8a95b244a32ac58aafda89ba088d715714ef866a (diff)
downloadtzr-e46475cdd2e0a9cff9330ec88d08640f19164b42.tar.gz
fancy rectangle drawing
Diffstat (limited to 'headers/TZR_types.h')
-rw-r--r--headers/TZR_types.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/headers/TZR_types.h b/headers/TZR_types.h
index 32f734a..183fe5d 100644
--- a/headers/TZR_types.h
+++ b/headers/TZR_types.h
@@ -33,6 +33,7 @@ typedef struct TZR_Resource TZR_Resource;
typedef enum TZR_EventType TZR_EventType;
typedef struct TZR_Event TZR_Event;
typedef struct TZR_DrawImageArgs TZR_DrawImageArgs;
+typedef struct TZR_DrawRectangleArgs TZR_DrawRectangleArgs;
typedef enum TZR_KeyState TZR_KeyState;
struct TZR_Config {
@@ -103,3 +104,13 @@ struct TZR_DrawImageArgs {
float sy;
bool center;
};
+
+struct TZR_DrawRectangleArgs {
+ int _;
+ int x;
+ int y;
+ int w;
+ int h;
+ bool fill;
+ bool center;
+};