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

Method push_back

Engine/source/materials/materialList.cpp:148–155  ·  view source on GitHub ↗

--------------------------------------

Source from the content-addressed store, hash-verified

146
147//--------------------------------------
148U32 MaterialList::push_back(const String &filename, Material* material)
149{
150 mMaterialNames.push_back(filename);
151 mMatInstList.push_back(material ? material->createMatInstance() : NULL);
152
153 // return the index
154 return mMaterialNames.size()-1;
155}
156
157//--------------------------------------
158bool MaterialList::read(Stream &stream)

Callers 15

loadModuleGroupMethod · 0.45
loadModuleExplicitMethod · 0.45
findModulesMethod · 0.45
findModuleTypesMethod · 0.45
registerModuleMethod · 0.45
addDeclaredAssetMethod · 0.45
setDependenciesMethod · 0.45
addDependencyMethod · 0.45
readMethod · 0.45
readTextMethod · 0.45
getShaderMacrosMethod · 0.45

Calls 2

createMatInstanceMethod · 0.45
sizeMethod · 0.45

Tested by 2

SetUpFunction · 0.36
TEST_FIXFunction · 0.36