feat: load materials from json

This commit is contained in:
Jan committed 2024-02-29 17:27:48 +01:00
1 parent 1f6d0ab51a
commit 0bb17a33bd
8 files changed
+481 -17

No files matched your search

@@ -36,6 +36,11 @@ public:
return AddAsset(assetType, assetName, asset, std::vector<XAssetInfoGeneric*>(), std::vector<scr_string_t>());
}
XAssetInfoGeneric* AddAsset(const asset_type_t assetType, const std::string& assetName, void* asset, std::vector<XAssetInfoGeneric*> dependencies)
{
return AddAsset(assetType, assetName, asset, std::move(dependencies), std::vector<scr_string_t>());
}
virtual XAssetInfoGeneric* LoadDependency(asset_type_t assetType, const std::string& assetName) = 0;
virtual IndirectAssetReference LoadIndirectAssetReference(asset_type_t assetType, const std::string& assetName) = 0;
};