version 3.3

VRS::CacheNodeGL Class Reference

#include <vrs/opengl/cachenodegl.h>

Inheritance diagram for VRS::CacheNodeGL:

VRS::SceneNode VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 CacheNodeGL (SceneThing *scene)
virtual void evaluate (Engine *engine)
virtual Bounds boundingBox (Engine *engine) const


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  ) 

Thing must not be null.


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:

Generated on Sun May 26 06:00:33 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact