VISH
0.2
|
Abstract base class for objects that can be rendered. More...
#include </home/werner/origo/vish/ocean/Anemonia/VRenderAble.hpp>
Abstract base class for objects that can be rendered.
virtual void Wizt::RenderAble::environment_render | ( | VRenderContext & | Context | ) | const [pure virtual] |
A render routine which may change the state of OpenGL for all subsequent renderings.
Use this function overload with care! By default, it saves the OpenGL state, calls the render() routine, and restores the OpenGL state.
Implemented in Wizt::VGLRenderObject, CameraLens, and LocalLens.
RefPtr< BoundingBall > Wizt::RenderAble::getBoundingBall | ( | const RefPtr< ValuePool > & | VP | ) | const [virtual] |
Retrieve the bounding volume of the object.
By default, it reads out the interface of the local VObject::State object.
Reimplemented in Wizt::VRenderObject.
bool Wizt::RenderAble::safe_render | ( | VRenderContext & | Context, |
double | Z = 0 , |
||
double | dZ = -1 |
||
) | const |
Calls the render function with pushing/popping the modelview matrix.
Z | The starting depth |
dZ | The depth thickness; if negative, draw all. |
bool Wizt::RenderAble::timed_render | ( | double & | RenderTime, |
VRenderContext & | Context, | ||
double | Z = 0 , |
||
double | dZ = -1 |
||
) | const |
Render this object (calling safe_render() ) including timing measurements.
This is the preferred methods on how objects are rendered. This function will catch exceptions and print them on the console, so it is safe to call. If an application wants to do something about render exceptions, then do not call this function but use safe_render() instead.
const char * Wizt::RenderAble::VisibilitySlotName | ( | ) | [static] |
The name of the slot indicating visibility.
This name is a reserved name for child classes, they must not defined own slots of same name.