diff options
author | kdx <kdx@42l.fr> | 2023-02-21 05:56:04 +0100 |
---|---|---|
committer | kdx <kdx@42l.fr> | 2023-02-21 06:05:11 +0100 |
commit | 773fba046149c716d44551f2456d794b65629fcd (patch) | |
tree | ec773e48df995d329c1a0ad06902e1b1dfb44c4c /headers/TZR_types.h | |
parent | 51caab960591a0295cfbb7d2f7be2bc8e763f492 (diff) | |
download | tzr-773fba046149c716d44551f2456d794b65629fcd.tar.gz |
positional/optional args for DrawImage
Diffstat (limited to 'headers/TZR_types.h')
-rw-r--r-- | headers/TZR_types.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/headers/TZR_types.h b/headers/TZR_types.h index 39c3203..63a50bd 100644 --- a/headers/TZR_types.h +++ b/headers/TZR_types.h @@ -24,6 +24,7 @@ typedef struct TZR_Resource TZR_Resource; typedef struct TZR_Element TZR_Element; typedef enum TZR_EventType TZR_EventType; typedef struct TZR_Event TZR_Event; +typedef struct TZR_DrawImageArgs TZR_DrawImageArgs; struct TZR_Config { int width; @@ -80,3 +81,17 @@ struct TZR_Element { struct TZR_Event { TZR_EventType type; }; + +struct TZR_DrawImageArgs { + int _; + TZR_Uint id; + int x; + int y; + int ix; + int iy; + int w; + int h; + float r; + float sx; + float sy; +}; |