VISH
0.2
|
Base class for VObjects that may be pickable via OpenGL rendering. More...
#include </home/werner/origo/vish/ocean/GLvish/Pickable.hpp>
Base class for VObjects that may be pickable via OpenGL rendering.
bool Wizt::Pickable::isPickable | ( | ) | const [inline] |
Tells whether this object may be picked by the mouse.
If false, this object will be invisible to mouse clicks.
int Wizt::Pickable::SubObjectBegin | ( | VGLRenderContext & | Context | ) | const [inline] |
Function to be called by an object's render() routine to demark the beginning of a render section that can be picked independently of the rest.
Internally, a counter is incremented at each such call. This counter is then delivered to the Render object's pick() callback routine.
GLfloat Wizt::Pickable::white[4] |
Color for displaying current object selection.
By default, it is white, but it may be changed to another color as well, although this is not necessarily a good idea because users might get confused.