.TH "SoGLRenderCache" 3 "Fri Sep 6 2024 15:32:06" "Version 4.0.3" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoGLRenderCache \- The \fBSoGLRenderCache\fP class is used to cache OpenGL calls\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherits \fBSoCache\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBSoGLRenderCache\fP (\fBSoState\fP *state)" .br .ti -1c .RI "virtual \fB~SoGLRenderCache\fP ()" .br .ti -1c .RI "void \fBopen\fP (\fBSoState\fP *state)" .br .ti -1c .RI "void \fBclose\fP (void)" .br .ti -1c .RI "void \fBcall\fP (\fBSoState\fP *state)" .br .ti -1c .RI "int \fBgetCacheContext\fP (void) const" .br .ti -1c .RI "virtual SbBool \fBisValid\fP (const \fBSoState\fP *state) const" .br .ti -1c .RI "virtual void \fBaddNestedCache\fP (\fBSoGLDisplayList\fP *child)" .br .ti -1c .RI "\fBSoGLLazyElement::GLState\fP * \fBgetPreLazyState\fP (void)" .br .ti -1c .RI "\fBSoGLLazyElement::GLState\fP * \fBgetPostLazyState\fP (void)" .br .in -1c Public Member Functions inherited from \fBSoCache\fP .in +1c .ti -1c .RI "\fBSoCache\fP (\fBSoState\fP *const state)" .br .ti -1c .RI "void \fBref\fP (void)" .br .ti -1c .RI "void \fBunref\fP (\fBSoState\fP *state=NULL)" .br .ti -1c .RI "void \fBaddElement\fP (const \fBSoElement\fP *const elem)" .br .ti -1c .RI "virtual void \fBaddCacheDependency\fP (const \fBSoState\fP *state, \fBSoCache\fP *cache)" .br .ti -1c .RI "const \fBSoElement\fP * \fBgetInvalidElement\fP (const \fBSoState\fP *const state) const" .br .ti -1c .RI "void \fBinvalidate\fP (void)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual void \fBdestroy\fP (\fBSoState\fP *state)" .br .in -1c Protected Member Functions inherited from \fBSoCache\fP .in +1c .ti -1c .RI "virtual \fB~SoCache\fP ()" .br .in -1c .SH "Detailed Description" .PP The \fBSoGLRenderCache\fP class is used to cache OpenGL calls\&. .SH "Constructor & Destructor Documentation" .PP .SS "SoGLRenderCache::SoGLRenderCache (\fBSoState\fP * state)" Constructor with \fIstate\fP being the current state\&. .SS "SoGLRenderCache::~SoGLRenderCache ()\fR [virtual]\fP" Destructor\&. .SH "Member Function Documentation" .PP .SS "void SoGLRenderCache::open (\fBSoState\fP * state)" Opens the cache\&. All GL calls will be cached until \fBclose()\fP is called\&. .PP \fBSee also\fP .RS 4 \fBclose()\fP .PP \fBcall()\fP .RE .PP .SS "void SoGLRenderCache::close (void )" Closes the cache\&. Should be called after all GL calls\&. .PP \fBSee also\fP .RS 4 \fBopen()\fP .RE .PP .SS "void SoGLRenderCache::call (\fBSoState\fP * state)" Executes the cached display list\&. .PP \fBSee also\fP .RS 4 \fBopen()\fP .RE .PP .SS "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\&. .PP This method is an extension versus the Open Inventor API\&. .SS "SbBool SoGLRenderCache::isValid (const \fBSoState\fP * state) const\fR [virtual]\fP" Return \fITRUE\fP if this cache is valid, \fIFALSE\fP otherwise\&. .PP Reimplemented from \fBSoCache\fP\&. .SS "void SoGLRenderCache::addNestedCache (\fBSoGLDisplayList\fP * child)\fR [virtual]\fP" Adds a display list which is called from this cache\&. This is to make sure the child display list isn't destroyed too early\&. .SS "void SoGLRenderCache::destroy (\fBSoState\fP * state)\fR [protected]\fP, \fR [virtual]\fP" Can be overridden by subclasses to clean up before they are deleted\&. Default method does nothing\&. .PP Reimplemented from \fBSoCache\fP\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.