2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 23:07:42 +00:00

D3D CElementGen rendering

This commit is contained in:
Jack Andersen
2016-02-16 17:42:27 -10:00
parent 468db3b203
commit 13e3afa72f
14 changed files with 429 additions and 16 deletions

View File

@@ -41,13 +41,13 @@ SParticleModel CParticleDataFactory::GetModel(CInputStream& in, CSimplePool* res
TResId id = in.readUint32Big();
if (!id)
return {};
return {resPool->GetObj({FOURCC('CMDL'), id}), true};
return {std::move(resPool->GetObj({FOURCC('CMDL'), id})), true};
}
SChildGeneratorDesc CParticleDataFactory::GetChildGeneratorDesc(TResId res, CSimplePool* resPool, const std::vector<TResId>& tracker)
{
if (std::count(tracker.cbegin(), tracker.cend(), res) == 0)
return {resPool->GetObj({FOURCC('PART'), res}), true};
return {std::move(resPool->GetObj({FOURCC('PART'), res})), true};
return {};
}
@@ -70,7 +70,7 @@ SSwooshGeneratorDesc CParticleDataFactory::GetSwooshGeneratorDesc(CInputStream&
TResId id = in.readUint32Big();
if (!id)
return {};
return {resPool->GetObj({FOURCC('SWHC'), id}), true};
return {std::move(resPool->GetObj({FOURCC('SWHC'), id})), true};
}
SElectricGeneratorDesc CParticleDataFactory::GetElectricGeneratorDesc(CInputStream& in, CSimplePool* resPool)
@@ -81,7 +81,7 @@ SElectricGeneratorDesc CParticleDataFactory::GetElectricGeneratorDesc(CInputStre
TResId id = in.readUint32Big();
if (!id)
return {};
return {resPool->GetObj({FOURCC('ELSC'), id}), true};
return {std::move(resPool->GetObj({FOURCC('ELSC'), id})), true};
}
CUVElement* CParticleDataFactory::GetTextureElement(CInputStream& in, CSimplePool* resPool)