diff options
Diffstat (limited to 'asset.hpp')
-rw-r--r-- | asset.hpp | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -9,21 +9,16 @@ struct Pack; struct Asset { Asset* next; Asset_Loader* loader; - virtual bool load( - Asset_Loader* loader, - Arena* a, - Pack_File* f - ) = 0; - virtual void unload(Asset_Loader* loader) = 0; }; struct Asset_Loader { - virtual Asset* load(Arena* a, Pack_File* f) = 0; + virtual Asset* load(Arena* a, Arena* s, Pack_File* f) = 0; + virtual void unload(Asset* a) = 0; }; struct Asset_Arena { Pack* p; - Arena* a; + Arena* a, * s; Asset* assets; void init(Arena* arena, const char* pack_name); |