#include <Explosion.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) |
LightSourceManager calls this method when a light source is available. | |
virtual void | onUserDropped (LightSourceManager *pLightSourceManager, osg::Referenced *pUserObject) |
LightSourceManager calls this method when a user is completely dropped (user explicitly removed or manager cleared). |
Definition at line 134 of file Explosion.h.
bool Explosion::LSCallback::onSourceAvailable | ( | LightSourceManager * | pLightSourceManager, | |
osg::Referenced * | pUserObject, | |||
UINT | lightNumber | |||
) | [virtual] |
LightSourceManager calls this method when a light source is available.
Implements LightSourceUserCallback.
Definition at line 342 of file Explosion.cpp.
References Util::Callback< LightSourceUserCallback >::_nestedCallback, and Explosion::createLight().
bool Explosion::LSCallback::onSourceTaken | ( | LightSourceManager * | pLightSourceManager, | |
osg::Referenced * | pUserObject, | |||
UINT | lightNumber | |||
) | [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 from LightSourceUserCallback.
Definition at line 329 of file Explosion.cpp.
References Util::Callback< LightSourceUserCallback >::_nestedCallback, ASSERT, Explosion::pLight, and ExplosionParams::pLightStateSet.
void Explosion::LSCallback::onUserDropped | ( | LightSourceManager * | pLightSourceManager, | |
osg::Referenced * | pUserObject | |||
) | [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.
Implements LightSourceUserCallback.
Definition at line 350 of file Explosion.cpp.
References ExplosionParams::pLSM.