Open Inventor Reference
|
#include <Inventor/caches/SoGLCacheList.h>
Public Member Functions | |
SoGLCacheList (int numCaches=2) | |
Constructor. Takes the maximum number of caches to build. | |
~SoGLCacheList () | |
Destructor. | |
bool | call (SoGLRenderAction *) |
Given an SoGLRenderAction, try to use one of the caches we've built. | |
void | open (SoGLRenderAction *, bool autoCache=TRUE) |
Open a new cache, maybe. | |
void | close (SoGLRenderAction *) |
Close an open cache, if any. | |
void | invalidateAll () |
Mark all caches as invalid. | |
Definition at line 81 of file SoGLCacheList.h.
SoGLCacheList::SoGLCacheList | ( | int | numCaches = 2 | ) |
SoGLCacheList::~SoGLCacheList | ( | ) |
bool 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 * | , |
bool | 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).
References TRUE.