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

Method createLightInfo

Engine/source/lighting/lightManager.cpp:95–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95LightInfo* LightManager::createLightInfo(LightInfo* light /* = NULL */)
96{
97 LightInfo *outLight = (light != NULL) ? light : new LightInfo;
98
99 LightManagerMap &lightManagers = _getLightManagers();
100 LightManagerMap::Iterator iter = lightManagers.begin();
101 for ( ; iter != lightManagers.end(); iter++ )
102 {
103 LightManager *lm = iter->value;
104 lm->_addLightInfoEx( outLight );
105 }
106
107 return outLight;
108}
109
110void LightManager::initLightFields()
111{

Callers 4

onWakeMethod · 0.80
registerLightsMethod · 0.80
ExplosionMethod · 0.80
onWakeMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
_addLightInfoExMethod · 0.45

Tested by

no test coverage detected