| 125 | "@ingroup Lighting\n" ); |
| 126 | |
| 127 | void LightManager::activate( SceneManager *sceneManager ) |
| 128 | { |
| 129 | AssertFatal( sceneManager, "LightManager::activate() - Got null scene manager!" ); |
| 130 | AssertFatal( mIsActive == false, "LightManager::activate() - Already activated!" ); |
| 131 | AssertFatal( smActiveLM == NULL, "LightManager::activate() - A previous LM is still active!" ); |
| 132 | |
| 133 | mIsActive = true; |
| 134 | mSceneManager = sceneManager; |
| 135 | smActiveLM = this; |
| 136 | |
| 137 | onLightManagerActivate_callback( getName() ); |
| 138 | } |
| 139 | |
| 140 | IMPLEMENT_GLOBAL_CALLBACK( onLightManagerDeactivate, void, ( const char *name ), ( name ), |
| 141 | "A callback called by the engine when a light manager is deactivated.\n" |
no test coverage detected