mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-14 00:38:15 -05:00
18 lines
433 B
C++
18 lines
433 B
C++
#include "AssetLoaderMaterial.h"
|
|
|
|
#include <cstring>
|
|
|
|
#include "ObjLoading.h"
|
|
#include "Game/IW4/IW4.h"
|
|
#include "Pool/GlobalAssetPool.h"
|
|
|
|
using namespace IW4;
|
|
|
|
void* AssetLoaderMaterial::CreateEmptyAsset(const std::string& assetName, MemoryManager* memory)
|
|
{
|
|
auto* material = memory->Create<Material>();
|
|
memset(material, 0, sizeof(Material));
|
|
material->info.name = memory->Dup(assetName.c_str());
|
|
return material;
|
|
}
|