| 159 | } |
| 160 | |
| 161 | LightInfo* LightManager::getDefaultLight() |
| 162 | { |
| 163 | // The sun is always our default light when |
| 164 | // when its registered. |
| 165 | if ( mSpecialLights[ LightManager::slSunLightType ] ) |
| 166 | return mSpecialLights[ LightManager::slSunLightType ]; |
| 167 | |
| 168 | // Else return a dummy special light. |
| 169 | if ( !mDefaultLight ) |
| 170 | mDefaultLight = createLightInfo(); |
| 171 | return mDefaultLight; |
| 172 | } |
| 173 | |
| 174 | LightInfo* LightManager::getSpecialLight( LightManager::SpecialLightTypesEnum type, bool useDefault ) |
| 175 | { |