#include <LightSourceManager.h>
Public Member Functions | |
virtual bool | onSourceTaken (LightSourceManager *pLightSourceManager, osg::Referenced *pUserObject, UINT lightNumber) |
LightSourceManager calls this method just before the owned light is to be given to another user. | |
virtual bool | onSourceAvailable (LightSourceManager *pLightSourceManager, osg::Referenced *pUserObject, UINT lightNumber)=0 |
LightSourceManager calls this method when a light source is available. | |
virtual void | onUserDropped (LightSourceManager *pLightSourceManager, osg::Referenced *pUserObject)=0 |
LightSourceManager calls this method when a user is completely dropped (user explicitly removed or manager cleared). |
Don't forget to call
if (_nestedCallback.valid()) _nestedCallback->myMethod(myParams...);
Definition at line 48 of file LightSourceManager.h.
virtual bool LightSourceUserCallback::onSourceAvailable | ( | LightSourceManager * | pLightSourceManager, | |
osg::Referenced * | pUserObject, | |||
UINT | lightNumber | |||
) | [pure virtual] |
LightSourceManager calls this method when a light source is available.
Implemented in Explosion::LSCallback.
virtual bool LightSourceUserCallback::onSourceTaken | ( | LightSourceManager * | pLightSourceManager, | |
osg::Referenced * | pUserObject, | |||
UINT | lightNumber | |||
) | [inline, virtual] |
LightSourceManager calls this method just before the owned light is to be given to another user.
Source users may then do some cleanup, and should not try to modify the light or light-affected nodes after this call.
Reimplemented in Explosion::LSCallback.
Definition at line 53 of file LightSourceManager.h.
References Util::Callback< LightSourceUserCallback >::_nestedCallback.
virtual void LightSourceUserCallback::onUserDropped | ( | LightSourceManager * | pLightSourceManager, | |
osg::Referenced * | pUserObject | |||
) | [pure virtual] |
LightSourceManager calls this method when a user is completely dropped (user explicitly removed or manager cleared).
It is guaranteed that onSourceTaken() is called before if needed.
Implemented in Explosion::LSCallback.