Open Inventor Reference
SoGLRenderCache Class Reference

#include <Inventor/caches/SoGLRenderCache.h>

Inheritance diagram for SoGLRenderCache:
SoCache

List of all members.

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:
SoGLLazyElementgetLazyElt ()

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

Detailed Description

Definition at line 84 of file SoGLRenderCache.h.


Constructor & Destructor Documentation

SoGLRenderCache::SoGLRenderCache ( SoState state)
SoGLRenderCache::~SoGLRenderCache ( )

Member Function Documentation

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.

virtual SbBool SoGLRenderCache::isValid ( const SoState state) const [virtual]

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.

void SoGLRenderCache::setLazyBits ( uint32_t  ivFlag,
uint32_t  glFlag,
uint32_t  sendFlag 
) [inline]

Definition at line 111 of file SoGLRenderCache.h.


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