57#ifndef _SO_GL_RENDER_CACHE
58#define _SO_GL_RENDER_CACHE
112 {checkGLFlag |= glFlag;
113 checkIVFlag |= ivFlag;
114 doSendFlag |= sendFlag;}
117 {
return GLCacheLazyElement;}
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
List of generic (void *) pointers.
Element that manages the GL state for the SoLazyElement.
void open(SoState *state)
Opens/closes the cache.
void call(SoState *state)
Calls the cache.
void setLazyBits(uint32_t ivFlag, uint32_t glFlag, uint32_t sendFlag)
method for the lazy element to set flags:
virtual void destroy(SoState *state)
Free display lists before deletion, if possible (if not, they are added to a list to be deleted later...
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 fla...
virtual void addNestedCache(SoGLDisplayList *child)
Maintain list of cache dependencies.
SoGLLazyElement * getLazyElt()
SoGLRenderCache(SoState *state)
Constructor and destructor.
An SoState collects and holds state while traversing a scene graph.
provide a public typedef for GLLazyState, so that GLRenderCache can use it: