Open Inventor Reference
SoGLCacheList Class Reference

#include <Inventor/caches/SoGLCacheList.h>

List of all members.

Public Member Functions

 SoGLCacheList (int numCaches=2)
 Constructor. Takes the maximum number of caches to build.
 ~SoGLCacheList ()
 Destructor.
SbBool call (SoGLRenderAction *)
 Given an SoGLRenderAction, try to use one of the caches we've built.
void open (SoGLRenderAction *, SbBool autoCache=TRUE)
 Open a new cache, maybe.
void close (SoGLRenderAction *)
 Close an open cache, if any.
void invalidateAll ()
 Mark all caches as invalid.

Detailed Description

Definition at line 81 of file SoGLCacheList.h.


Constructor & Destructor Documentation

SoGLCacheList::SoGLCacheList ( int  numCaches = 2)
SoGLCacheList::~SoGLCacheList ( )

Member Function Documentation

SbBool SoGLCacheList::call ( SoGLRenderAction )

If none of the caches can be used, this returns FALSE. If this returns TRUE, then a cache has been called and all the GL commands in it have already been done.

void SoGLCacheList::close ( SoGLRenderAction )

If open() didn't open a cache, this routine does nothing.

void SoGLCacheList::invalidateAll ( )

This should be called when a node is notified of changes in its children or fields.

void SoGLCacheList::open ( SoGLRenderAction ,
SbBool  autoCache = TRUE 
)

If the autoCache flag is TRUE, a heuristic will be used to figure out whether or not caching should be done (based on when caches were built, when they were used, etc). If the flag is FALSE, always try to open a cache (and possibly delete an old cache).


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