MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / ~TerrainBlock

Method ~TerrainBlock

Engine/source/terrain/terrData.cpp:223–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223TerrainBlock::~TerrainBlock()
224{
225 // Kill collision
226 mTerrainConvexList.nukeList();
227
228 SAFE_DELETE(mLightMap);
229 mLightMapTex = NULL;
230
231#ifdef TORQUE_TOOLS
232 TerrainEditor* editor = dynamic_cast<TerrainEditor*>(Sim::findObject("ETerrainEditor"));
233 if (editor)
234 editor->detachTerrain(this);
235#endif
236 deleteZodiacPrimitiveBuffer();
237
238 SAFE_RELEASE(mDetailTextureArray);
239 SAFE_RELEASE(mMacroTextureArray);
240 SAFE_RELEASE(mNormalTextureArray);
241 SAFE_RELEASE(mOrmTextureArray);
242}
243
244void TerrainBlock::_onTextureEvent( GFXTexCallbackCode code )
245{

Callers

nothing calls this directly

Calls 3

nukeListMethod · 0.80
detachTerrainMethod · 0.80
findObjectFunction · 0.50

Tested by

no test coverage detected