library: libRGL #include "TGLDisplayListCache.h" |
TGLDisplayListCache
class description - header file - source file
viewCVS header - viewCVS source
class TGLDisplayListCache
Function Members (Methods)
Display options:
TGLDisplayListCache
Singleton cache of GL display lists. Provides lazy automatic GL
display list capture of draws by a TGLDrawable at a certain 'LOD'
which can be disable on a global, per drawable or LOD basis.
Internally the cache creates a block of GL display lists of fSize, //
and maintains a stl::map, mapping CacheID_t ids (created from
TGLDrawable and LOD draw flag) to 'name' entries in the GL display
list block.
See TGLDrawable::Draw() for use.
NOTE: Purging of individual TGLDrawables not currently implemented:
Purge(const TGLDrawable & drawable) //
Purge(const TGLDrawable & drawable, UInt_t LOD) //
void Init()
Initialise the cache - create the internal GL display list block of size
fSize
Bool_t Draw(const TGLDrawable & drawable, const TGLDrawFlags & flags)
Draw (call) the GL dislay list entry associated with the drawable / LOD
flag pair, and return kTRUE. If no list item associated, return KFALSE.
Bool_t OpenCapture(const TGLDrawable & drawable, const TGLDrawFlags & flags)
Open capture of GL draw commands into cache entry, associated with
drawable / LOD pair. Capture is done in GL_COMPILE mode - so the cache
entry has to be drawn using TGLDisplayListCache::Draw() after capture close.
Return kTRUE if opened, kFALSE if not. Capture is not opened if cache not
enabled or cache if full.
GL display lists can be nested at 'run' (draw) time, but cannot be nested
in capture - so attempting to nest captures is rejected.
void Purge()
Purge all entries for all drawable/LOD pairs from cache
void Purge(const TGLDrawable & )
Purge all entries for a drawable at any LOD from cache
NOTE: NOT IMPLEMENTED AT PRESENT!
Author: Richard Maunder 25/05/2005
Last update: root/gl:$Name: $:$Id: TGLDisplayListCache.cxx,v 1.13 2006/12/09 23:01:54 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.