The soglrendercache class is used to cache opengl calls.
#include <Inventor/caches/SoGLRenderCache.h>
Inherits SoCache.
SoGLRenderCache (SoState *state)
virtual ~SoGLRenderCache ()
void open (SoState *state)
void close (void)
void call (SoState *state)
int getCacheContext (void) const
virtual SbBool isValid (const SoState *state) const
virtual void addNestedCache (SoGLDisplayList *child)
SoGLLazyElement::GLState * getPreLazyState (void)
SoGLLazyElement::GLState * getPostLazyState (void)
virtual void destroy (SoState *state)
The SoGLRenderCache class is used to cache OpenGL calls.
Constructor with state being the current state.
Destructor.
Opens the cache. All GL calls will be cached until close() is called.
See also:
close()
call()
Closes the cache. Should be called after all GL calls.
See also:
open()
Executes the cached display list.
See also:
open()
Returns the cache context of this cache. This is used to quickly determine if cache can be used for a state.
This method is an extension versus the Open Inventor API.
Return TRUE if this cache is valid, FALSE otherwise.
Reimplemented from SoCache.
Adds a display list which is called from this cache. This is to make sure the child display list isn't destroyed too early.
Can be overridden by subclasses to clean up before they are deleted. Default method does nothing.
Reimplemented from SoCache.
Generated automatically by Doxygen for Coin from the source code.