summaryrefslogtreecommitdiff
path: root/asset.hpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-23 14:41:01 +1100
committerquou <quou@disroot.org>2024-12-23 14:41:01 +1100
commitb293168cc158d65f1a5146f155921ff82119d1bc (patch)
tree08cc5ee235b4b7ca6ead45c43f9b407664971613 /asset.hpp
parent58245585cbe77e6c03ebe13f29e10393ff3c45b4 (diff)
Texture conversion and loading
Diffstat (limited to 'asset.hpp')
-rw-r--r--asset.hpp11
1 files changed, 3 insertions, 8 deletions
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);