MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / _initMaterialInstMapping

Method _initMaterialInstMapping

Engine/source/terrain/terrFile.cpp:256–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256void TerrainFile::_initMaterialInstMapping()
257{
258 mMaterialInstMapping.clearMatInstList();
259
260 for( U32 i = 0; i < mMaterials.size(); ++ i )
261 {
262 mMaterialInstMapping.push_back(mMaterials[i]->getInternalName());
263 }
264
265 mMaterialInstMapping.mapMaterials();
266}
267
268bool TerrainFile::save( const char *filename )
269{

Callers 4

loadMethod · 0.80
addMaterialMethod · 0.80
removeMaterialMethod · 0.80
updateMaterialMethod · 0.80

Calls 5

clearMatInstListMethod · 0.80
getInternalNameMethod · 0.80
mapMaterialsMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected