http://www.coin3d.org/ http://www.kongsberg.com/kogt/ |
The SoGLRenderCache class is used to cache OpenGL calls. More...
#include <Inventor/caches/SoGLRenderCache.h>
Public Member Functions | |
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) |
Public Member Functions inherited from SoCache | |
SoCache (SoState *const state) | |
void | ref (void) |
void | unref (SoState *state=NULL) |
void | addElement (const SoElement *const elem) |
virtual void | addCacheDependency (const SoState *state, SoCache *cache) |
const SoElement * | getInvalidElement (const SoState *const state) const |
void | invalidate (void) |
Protected Member Functions | |
virtual void | destroy (SoState *state) |
Protected Member Functions inherited from SoCache | |
virtual | ~SoCache () |
The SoGLRenderCache class is used to cache OpenGL calls.
SoGLRenderCache::SoGLRenderCache | ( | SoState * | state | ) |
Constructor with state being the current state.
|
virtual |
Destructor.
void SoGLRenderCache::open | ( | SoState * | state | ) |
void SoGLRenderCache::close | ( | void | ) |
Closes the cache. Should be called after all GL calls.
int SoGLRenderCache::getCacheContext | ( | void | ) | const |
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.
|
virtual |
Return TRUE if this cache is valid, FALSE otherwise.
Reimplemented from SoCache.
|
virtual |
Adds a display list which is called from this cache. This is to make sure the child display list isn't destroyed too early.
|
protectedvirtual |
Can be overridden by subclasses to clean up before they are deleted. Default method does nothing.
Reimplemented from SoCache.
Copyright © by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated for Coin by Doxygen