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

Method mapMaterials

Engine/source/materials/materialList.cpp:293–299  ·  view source on GitHub ↗

-------------------------------------------------------------------------- Map materials - map materials to the textures in the list --------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

291// Map materials - map materials to the textures in the list
292//--------------------------------------------------------------------------
293void MaterialList::mapMaterials()
294{
295 mMatInstList.setSize( mMaterialNames.size() );
296
297 for( U32 i=0; i<mMaterialNames.size(); i++ )
298 mapMaterial( i );
299}
300
301/// Map the material name at the given index to a material instance.
302///

Callers 2

setMaterialListMethod · 0.80

Calls 2

setSizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected