mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-11-30 08:17:48 +00:00
18 lines
424 B
C++
18 lines
424 B
C++
#include "AssetLoaderClipMap.h"
|
|
|
|
#include "Game/IW5/IW5.h"
|
|
#include "ObjLoading.h"
|
|
#include "Pool/GlobalAssetPool.h"
|
|
|
|
#include <cstring>
|
|
|
|
using namespace IW5;
|
|
|
|
void* AssetLoaderClipMap::CreateEmptyAsset(const std::string& assetName, MemoryManager* memory)
|
|
{
|
|
auto* clipMap = memory->Create<clipMap_t>();
|
|
memset(clipMap, 0, sizeof(clipMap_t));
|
|
clipMap->name = memory->Dup(assetName.c_str());
|
|
return clipMap;
|
|
}
|