VRS::CacheNodeGL Class Reference
#include <vrs/opengl/cachenodegl.h>
List of all members.
Detailed Description
A
CacheNodeGL is used to speed up the rendering of static parts of a scene. Tbe
SceneThing passed during construction is stored. In the first evaluation an OpenGL display list is created from the content of the
SceneThing, which is used in all succeeding evaluations.
Note: The content of this node cannot be changed after the first evaluation. When the display list is created, the
CacheNodeGL does not keep any reference to the original
SceneThing. Therefore, visitors and ray intersectors will not find the content of this node. If you need a display list in combination with the possibility of visiting and ray intersection, use
DisplayListGL instead.
Constructor & Destructor Documentation
| VRS::CacheNodeGL::CacheNodeGL |
( |
SceneThing * |
scene |
) |
|
Member Function Documentation
| virtual void VRS::CacheNodeGL::evaluate |
( |
Engine * |
engine |
) |
[virtual] |
In the first call, a display list is created from the SceneThing paased to the constructor. This display list is evaluated in all succeeding calls.
Reimplemented from VRS::SceneNode.
| virtual Bounds VRS::CacheNodeGL::boundingBox |
( |
Engine * |
engine |
) |
const [virtual] |
Returns the bounding box of the node content.
Reimplemented from VRS::SceneNode.
The documentation for this class was generated from the following file: