diff options
author | quou <quou@disroot.org> | 2024-12-23 14:41:01 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-23 14:41:01 +1100 |
commit | b293168cc158d65f1a5146f155921ff82119d1bc (patch) | |
tree | 08cc5ee235b4b7ca6ead45c43f9b407664971613 /asset.hpp | |
parent | 58245585cbe77e6c03ebe13f29e10393ff3c45b4 (diff) |
Texture conversion and loading
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); |