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

Method onWake

Engine/source/T3D/guiObjectView.cpp:240–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238//------------------------------------------------------------------------------
239
240bool GuiObjectView::onWake()
241{
242 if( !Parent::onWake() )
243 return false;
244
245 if( !mLight )
246 {
247 mLight = LIGHTMGR->createLightInfo();
248
249 mLight->setColor( mLightColor );
250 mLight->setAmbient( mLightAmbient );
251 mLight->setDirection( mLightDirection );
252 }
253
254 return true;
255}
256
257//------------------------------------------------------------------------------
258

Callers

nothing calls this directly

Calls 4

createLightInfoMethod · 0.80
setAmbientMethod · 0.80
setColorMethod · 0.45
setDirectionMethod · 0.45

Tested by

no test coverage detected