diff options
| author | navewindre <boneyaard@gmail.com> | 2025-09-03 20:10:09 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2025-09-03 20:10:09 +0200 |
| commit | f8b92ce3aa08b1445c9f956d8166830946562d12 (patch) | |
| tree | 94e63a5aec9f8f52b577f56799e0c9201fd976a5 /src/game/assets.h | |
a
Diffstat (limited to 'src/game/assets.h')
| -rw-r--r-- | src/game/assets.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/game/assets.h b/src/game/assets.h new file mode 100644 index 0000000..d0fe270 --- /dev/null +++ b/src/game/assets.h @@ -0,0 +1,23 @@ +#pragma once +#include "../util/typedef.h" +#include "../util/file.h" + + +typedef struct { + struct GL_FONT* font; + struct GL_FONT* jpn12; + struct GL_FONT* jpn16; + struct GL_TEX2D* test; + + U8 fonts_init; +} GAME_ASSETS; + +extern void assets_init( struct GAME_DATA* game ); +extern void assets_create_fonts( struct GAME_DATA* game ); +// extensions is a null-terminated array of null-terminated strings. +extern LIST<FILE_ENTRY> assets_get_files_by_ext_dir( const char** extensions, const char* dir ); +// extensions is a null-terminated array of null-terminated strings. +extern LIST<FILE_ENTRY> assets_get_files_by_ext( const char** extensions ); +extern const char* assets_abspath( const char* filepath ); + +extern U8 assets_on_frame( struct GAME_DATA* game ); |
