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

Method getMaterial

Engine/source/terrain/terrCell.cpp:1085–1094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1083}
1084
1085TerrainCellMaterial* TerrCell::getMaterial()
1086{
1087 if ( !mMaterial )
1088 {
1089 mMaterial = new TerrainCellMaterial;
1090 mMaterial->init( mTerrain, mMaterials );
1091 }
1092
1093 return mMaterial;
1094}
1095
1096void TerrCell::deleteMaterials()
1097{

Callers 15

sceneContainer.cppFile · 0.45
initMethod · 0.45
initMethod · 0.45
_renderBlockMethod · 0.45
insertMaterialMethod · 0.45
initMethod · 0.45
addInstMethod · 0.45
_getMaterialInstanceMethod · 0.45
prepRenderImageMethod · 0.45
_initMaterialMethod · 0.45
_getMaterialInstanceMethod · 0.45
_initMaterialMethod · 0.45

Calls 1

initMethod · 0.45

Tested by

no test coverage detected