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. More...
 
 ~SoGLRenderCache ()
 
virtual void addNestedCache (SoGLDisplayList *child)
 Maintain list of cache dependencies. More...
 
void open (SoState *state)
 Opens/closes the cache. More...
 
void close ()
 
void call (SoState *state)
 Calls the cache. More...
 
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. More...
 
void setLazyBits (uint32_t ivFlag, uint32_t glFlag, uint32_t sendFlag)
 method for the lazy element to set flags: More...
 
SoGLLazyElementgetLazyElt ()
 
- Public Member Functions inherited from SoCache
 SoCache (SoState *state)
 Constructor. More...
 
void ref ()
 Reference/unreference. More...
 
void unref (SoState *state=NULL)
 
void addElement (const SoElement *elt)
 Adds an element to elements-used list if not already there. More...
 
virtual void addCacheDependency (const SoState *state, SoCache *cache)
 Adds a dependency of this instance on another cache instance. More...
 
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). More...
 
void invalidate ()
 Make this cache invalid. More...
 

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). More...
 
- Protected Member Functions inherited from SoCache
virtual ~SoCache ()
 Destructor. More...
 

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: