blob: d0fe27028363cb4678017112cfb9cde90bbb8534 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 );
|