Open Inventor Reference
SoGLCacheList Class Reference

#include <Inventor/caches/SoGLCacheList.h>

Public Member Functions

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

Detailed Description

Definition at line 81 of file SoGLCacheList.h.

Constructor & Destructor Documentation

◆ SoGLCacheList()

SoGLCacheList::SoGLCacheList ( int  numCaches = 2)

◆ ~SoGLCacheList()

SoGLCacheList::~SoGLCacheList ( )

Member Function Documentation

◆ call()

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.

◆ close()

void SoGLCacheList::close ( SoGLRenderAction )

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

◆ invalidateAll()

void SoGLCacheList::invalidateAll ( )

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

◆ open()

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).


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