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

Method onRemove

Engine/source/postFx/postEffect.cpp:451–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449}
450
451void PostEffect::onRemove()
452{
453 Parent::onRemove();
454
455 PFXMGR->_removeEffect( this );
456
457 LightManager::smActivateSignal.remove( this, &PostEffect::_onLMActivate );
458
459 mShader = NULL;
460 _cleanTargets();
461
462 if ( mNamedTarget.isRegistered() || mNamedTargetDepthStencil.isRegistered() )
463 GFXTextureManager::removeEventDelegate( this, &PostEffect::_onTextureEvent );
464
465 if ( mNamedTarget.isRegistered() )
466 {
467 mNamedTarget.unregister();
468 mNamedTarget.getTextureDelegate().clear();
469 }
470
471 if ( mNamedTargetDepthStencil.isRegistered() )
472 mNamedTargetDepthStencil.unregister();
473}
474
475void PostEffect::_updateScreenGeometry( const Frustum &frustum,
476 GFXVertexBufferHandle<PFXVertex> *outVB )

Callers

nothing calls this directly

Calls 5

_removeEffectMethod · 0.80
unregisterMethod · 0.80
removeMethod · 0.45
isRegisteredMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected