Open Inventor Reference
SoGLRenderCache Class Reference

#include <Inventor/caches/SoGLRenderCache.h>

Inheritance diagram for SoGLRenderCache:
SoCache

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 bool 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 ()
 
- Public Member Functions inherited from SoCache
 SoCache (SoState *state)
 Constructor.
 
void ref ()
 Reference/unreference.
 
void unref (SoState *state=NULL)
 
void addElement (const SoElement *elt)
 Adds an element to elements-used list if not already there.
 
virtual void addCacheDependency (const SoState *state, SoCache *cache)
 Adds a dependency of this instance on another cache instance.
 
virtual bool isValid (const SoState *state) const
 Returns TRUE if cache is valid with respect to the given state.
 
const SoElementgetInvalidElement (const SoState *state) const
 Assuming isValid() returns FALSE, this will return the first element that is invalid (auto-caching uses this in its heuristic).
 
void invalidate ()
 Make this cache invalid.
 

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).
 
- Protected Member Functions inherited from SoCache
virtual void destroy (SoState *state)
 Subclasses can use this to clean up just before they are deleted.
 
virtual ~SoCache ()
 Destructor.
 

Detailed Description

Definition at line 84 of file SoGLRenderCache.h.

Constructor & Destructor Documentation

◆ SoGLRenderCache()

SoGLRenderCache::SoGLRenderCache ( SoState state)

◆ ~SoGLRenderCache()

SoGLRenderCache::~SoGLRenderCache ( )

Member Function Documentation

◆ addNestedCache()

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.

◆ call()

void SoGLRenderCache::call ( SoState state)

The display list will be sent to GL. This automatically calls addCacheDependency on any open cache.

◆ close()

void SoGLRenderCache::close ( )

◆ destroy()

virtual void SoGLRenderCache::destroy ( SoState state)
protectedvirtual

Reimplemented from SoCache.

◆ getLazyElt()

SoGLLazyElement * SoGLRenderCache::getLazyElt ( )
inline

Definition at line 116 of file SoGLRenderCache.h.

◆ isValid()

virtual bool SoGLRenderCache::isValid ( const SoState state) const
virtual

Reimplemented from SoCache.

◆ open()

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.

◆ setLazyBits()

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: