version 3.3

VRS::DisplayListGL Class Reference

caches scene graphs in OpenGL display lists. More...

#include <vrs/opengl/displaylistgl.h>

Inheritance diagram for VRS::DisplayListGL:

VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 DisplayListGL ()
 VRS_TYPEINFO (DisplayListGL, MonoAttribute)
 VRS_SERIALIZABLE (DisplayListGL)

Friends

class DisplayListShaderGL


Detailed Description

caches scene graphs in OpenGL display lists.

Constructor & Destructor Documentation

VRS::DisplayListGL::DisplayListGL (  ) 

A DisplayListGL-attributes triggers a shader that stores the rendering command to evaluate the following scene graph in a display list. When the scene graph following the attribute is about to be rendered again, the display list is invoked, instead of evaluating the subgraph again. This can give a big performance boost.

If you invoke the modified-method of a DisplayListGL-object, the display list will be recompiled.

Note that it is normally a bad idea to share a single DisplayListGL-attribute in different (aka differing!) subgraphs, as internally a DisplayListGL-object is identified with a single OpenGL displaylist.


Member Function Documentation

VRS::DisplayListGL::VRS_TYPEINFO ( DisplayListGL  ,
MonoAttribute   
)

VRS::DisplayListGL::VRS_SERIALIZABLE ( DisplayListGL   ) 


Friends And Related Function Documentation

friend class DisplayListShaderGL [friend]


The documentation for this class was generated from the following file:

Generated on Mon May 21 06:00:20 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact