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

Method onRemove

Engine/source/environment/VolumetricFog.cpp:292–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292void VolumetricFog::onRemove()
293{
294 if (isClientObject())
295 {
296 if (isTicking())
297 {
298 setProcessTick(false);
299 if (mGlowing != 0)
300 {
301 mGlowing = 0;
302 glowFX->disable();
303 }
304 _leaveFog(dynamic_cast<ShapeBase*>(conn->getControlObject()));
305 }
306 VolumetricFogRTManager::getVolumetricFogRTMResizeSignal().remove(this, &VolumetricFog::handleResize);
307 GuiCanvas::getCanvasSizeChangeSignal().remove(this, &VolumetricFog::handleCanvasResize);
308 }
309 removeFromScene();
310 VFRTM->DecFogObjects();
311 Parent::onRemove();
312}
313void VolumetricFog::handleCanvasResize(GuiCanvas* canvas)
314{
315 UpdateBuffers(0,true);

Callers

nothing calls this directly

Calls 4

DecFogObjectsMethod · 0.80
disableMethod · 0.45
getControlObjectMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected