From b293168cc158d65f1a5146f155921ff82119d1bc Mon Sep 17 00:00:00 2001 From: quou Date: Mon, 23 Dec 2024 14:41:01 +1100 Subject: Texture conversion and loading --- asset.hpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'asset.hpp') diff --git a/asset.hpp b/asset.hpp index 27ac990..db53414 100644 --- a/asset.hpp +++ b/asset.hpp @@ -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); -- cgit v1.2.3-54-g00ecf