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

Method onRemove

Engine/source/postFx/postEffect.cpp:649–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647}
648
649void PostEffect::onRemove()
650{
651 Parent::onRemove();
652
653 PFXMGR->_removeEffect( this );
654
655 LightManager::smActivateSignal.remove( this, &PostEffect::_onLMActivate );
656
657 mShader = NULL;
658 _cleanTargets();
659
660 if ( mNamedTarget.isRegistered() || mNamedTargetDepthStencil.isRegistered() )
661 GFXTextureManager::removeEventDelegate( this, &PostEffect::_onTextureEvent );
662
663 if ( mNamedTarget.isRegistered() )
664 {
665 mNamedTarget.unregister();
666 mNamedTarget.getTextureDelegate().clear();
667 }
668
669 if ( mNamedTargetDepthStencil.isRegistered() )
670 mNamedTargetDepthStencil.unregister();
671}
672
673void PostEffect::_updateScreenGeometry( const Frustum &frustum,
674 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