diff options
author | kdx <kikoodx@paranoici.org> | 2023-10-27 14:06:01 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-10-27 14:06:01 +0200 |
commit | 38428ea84cbc72bae05c0f7f7535af485d96bc89 (patch) | |
tree | 4e6624571734ce094172df627c57dbe70ec43ee4 /headers | |
parent | 9859bf702aa695264fc8b9a4155bf8d6932e5c70 (diff) | |
download | tzr-38428ea84cbc72bae05c0f7f7535af485d96bc89.tar.gz |
load font (fixed ptsize)
Diffstat (limited to 'headers')
-rw-r--r-- | headers/TZR_types.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/headers/TZR_types.h b/headers/TZR_types.h index 6261799..105ac38 100644 --- a/headers/TZR_types.h +++ b/headers/TZR_types.h @@ -8,6 +8,7 @@ enum TZR_ResourceType { TZR_RES_RAW, TZR_RES_IMAGE, TZR_RES_SOUND, + TZR_RES_FONT, ___TZR_RES_COUNT }; @@ -39,6 +40,7 @@ typedef enum TZR_ResourceType TZR_ResourceType; typedef struct TZR_Raw TZR_Raw; typedef struct TZR_Image TZR_Image; typedef struct TZR_Sound TZR_Sound; +typedef struct TZR_Font TZR_Font; typedef struct TZR_Resource TZR_Resource; typedef enum TZR_EventType TZR_EventType; typedef struct TZR_Event TZR_Event; @@ -103,6 +105,11 @@ struct TZR_Sound { }; #endif +struct TZR_Font { + void *ptr; + int ptsize; +}; + struct TZR_Resource { TZR_ResourceType type; char *path; /* allocated and freed by TZR; can be NULL */ @@ -111,6 +118,7 @@ struct TZR_Resource { TZR_Raw raw; /* raw file data */ TZR_Image image; TZR_Sound sound; + TZR_Font ttf; }; }; |