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

Method createMatInstance

Engine/source/materials/materialManager.cpp:185–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185BaseMatInstance* MaterialManager::createMatInstance(const String &matName)
186{
187 BaseMaterialDefinition* mat = NULL;
188 if (Sim::findObject(matName, mat))
189 return mat->createMatInstance();
190
191 return NULL;
192}
193
194BaseMatInstance* MaterialManager::createMatInstance( const String &matName,
195 const GFXVertexFormat *vertexFormat )

Callers 15

getInstancingMatMethod · 0.45
updateMethod · 0.45
getShadowMatMethod · 0.45
MaterialListMethod · 0.45
push_backMethod · 0.45
mapMaterialMethod · 0.45
initMatInstancesMethod · 0.45
ProjectedShadowMethod · 0.45
_initRenderMethod · 0.45

Calls 2

findObjectFunction · 0.50
initMethod · 0.45

Tested by

no test coverage detected