feat: load materials from json

This commit is contained in:
Jan
2024-02-24 20:33:26 +01:00
parent 1f6d0ab51a
commit 0bb17a33bd
8 changed files with 481 additions and 17 deletions

View File

@ -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;
};