Here is description of function from doc:
virtual video::SLight& irr::scene::ILightSceneNode::getLightData ( ) [pure virtual]
Returns:
Returns the light data.
So if I understand it right it should return adress of SLight
Here is my code:
Code: Select all
ILightSceneNode *light = smgr->addLightSceneNode(0,
vector3df(-200,-200,500), SColorf(1.0f, 1.0f, 0.0f, 1.0f), 1000.0f);
SLight *lm;
*lm = light->getLightData();
lm->DiffuseColor = SColorf(1.0f, 1.0f, 1.0f, 1.0f);
Any idea whats wrong?