Open Inventor Reference
|
#include <Inventor/caches/SoGLRenderCache.h>
Public Member Functions | |
SoGLRenderCache (SoState *state) | |
Constructor and destructor. | |
~SoGLRenderCache () | |
virtual void | addNestedCache (SoGLDisplayList *child) |
Maintain list of cache dependencies. | |
void | open (SoState *state) |
Opens/closes the cache. | |
void | close () |
void | call (SoState *state) |
Calls the cache. | |
virtual SbBool | isValid (const SoState *state) const |
Returns TRUE if cache is valid with respect to the given state The GL version tests for GL Enable flags, first. | |
void | setLazyBits (uint32_t ivFlag, uint32_t glFlag, uint32_t sendFlag) |
method for the lazy element to set flags: | |
SoGLLazyElement * | getLazyElt () |
Protected Member Functions | |
virtual void | destroy (SoState *state) |
Free display lists before deletion, if possible (if not, they are added to a list to be deleted later by the CacheContextElement). |
Definition at line 84 of file SoGLRenderCache.h.
SoGLRenderCache::SoGLRenderCache | ( | SoState * | state | ) |
SoGLRenderCache::~SoGLRenderCache | ( | ) |
virtual void SoGLRenderCache::addNestedCache | ( | SoGLDisplayList * | child | ) | [virtual] |
If one cache calls another inside of it, we have to make sure that the inner cache isn't deleted before the outer one.
void SoGLRenderCache::call | ( | SoState * | state | ) |
The display list will be sent to GL. This automatically calls addCacheDependency on any open cache.
void SoGLRenderCache::close | ( | ) |
virtual void SoGLRenderCache::destroy | ( | SoState * | state | ) | [protected, virtual] |
Reimplemented from SoCache.
SoGLLazyElement* SoGLRenderCache::getLazyElt | ( | ) | [inline] |
Definition at line 116 of file SoGLRenderCache.h.
Reimplemented from SoCache.
void SoGLRenderCache::open | ( | SoState * | state | ) |
All GL commands made between an open() and a close() will be part of the the display list cache. Calling open automatically sets SoCacheElement.
Definition at line 111 of file SoGLRenderCache.h.