Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
A callback object called each time a Sector becomes visible through a Portal. More...
#include <SceneManagerPortals.hpp>
Public Member Functions | |
virtual void | operator() (const Camera *cam, SceneManagerPortals *psm, Sector *s, Portal *p)=0 |
Callback. |
A callback object called each time a Sector becomes visible through a Portal.
Note: a callback can be called multiple times with the same Sector argument if a Sector is discovered multiple times through different portals. Using callbacks can be very useful to perform special actions upon sector discovery, like enabling/disabling animations, enabling/disabling a ActorKdTree scene manager or a Terrain scene manager to render the external environment etc.
Definition at line 119 of file SceneManagerPortals.hpp.
virtual void vl::Sector::VisibilityCallback::operator() | ( | const Camera * | cam, |
SceneManagerPortals * | psm, | ||
Sector * | s, | ||
Portal * | p | ||
) | [pure virtual] |