diff options
author | kdx <kikoodx@paranoici.org> | 2023-02-14 05:29:59 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-02-14 05:29:59 +0100 |
commit | 14b440e42ad90be23a1ac18b5eb4bfe6a18d8a1f (patch) | |
tree | 06cc110b6da8198749fd86fd8ba70decf51fd600 /headers/TZR_types.h | |
parent | 82575e81dfe84f515906251032b6bc792f8e59ca (diff) | |
download | tzr-14b440e42ad90be23a1ac18b5eb4bfe6a18d8a1f.tar.gz |
config
Diffstat (limited to 'headers/TZR_types.h')
-rw-r--r-- | headers/TZR_types.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/headers/TZR_types.h b/headers/TZR_types.h index e209a7a..5f4004b 100644 --- a/headers/TZR_types.h +++ b/headers/TZR_types.h @@ -12,6 +12,7 @@ enum TZR_EventType { }; typedef unsigned int TZR_Uint; +typedef struct TZR_Config TZR_Config; typedef struct TZR_Point TZR_Point; typedef struct TZR_Rect TZR_Rect; typedef enum TZR_ResourceType TZR_ResourceType; @@ -22,6 +23,13 @@ typedef struct TZR_Element TZR_Element; typedef enum TZR_EventType TZR_EventType; typedef struct TZR_Event TZR_Event; +struct TZR_Config { + int width; + int height; + int target_fps; + const char *title; +}; + struct TZR_Point { int x; int y; @@ -38,7 +46,8 @@ struct TZR_Raw { }; struct TZR_Image { - int width, height; + int width; + int height; SDL_Texture *ptr; }; |