chore: add asset loaders for all asset types of t6

This commit is contained in:
Jan
2024-09-08 18:58:32 +02:00
parent f8912418a5
commit 931e128eb9
73 changed files with 829 additions and 102 deletions

View File

@ -0,0 +1,23 @@
#include "AssetLoaderClipMap.h"
#include "Game/T6/T6.h"
#include "ObjLoading.h"
using namespace T6;
void* AssetLoaderClipMapBase::CreateEmptyAsset(const std::string& assetName, MemoryManager* memory)
{
auto* asset = memory->Alloc<clipMap_t>();
asset->name = memory->Dup(assetName.c_str());
return asset;
}
asset_type_t AssetLoaderClipMap::GetHandlingAssetType() const
{
return ASSET_TYPE_CLIPMAP;
}
asset_type_t AssetLoaderClipMapPvs::GetHandlingAssetType() const
{
return ASSET_TYPE_CLIPMAP_PVS;
}