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

Method deactivate

Engine/source/lighting/lightManager.cpp:145–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143 "@ingroup Lighting\n" );
144
145void LightManager::deactivate()
146{
147 AssertFatal( mIsActive == true, "LightManager::deactivate() - Already deactivated!" );
148 AssertFatal( smActiveLM == this, "LightManager::activate() - This isn't the active light manager!" );
149
150 if( Sim::getRootGroup() ) // To protect against shutdown.
151 onLightManagerDeactivate_callback( getName() );
152
153 mIsActive = false;
154 mSceneManager = NULL;
155 smActiveLM = NULL;
156
157 // Just in case... make sure we're all clear.
158 unregisterAllLights();
159}
160
161LightInfo* LightManager::getDefaultLight()
162{

Callers 1

lightManager.cppFile · 0.45

Calls 2

getRootGroupFunction · 0.85
getNameFunction · 0.50

Tested by

no test coverage detected