.TH "SoGLVBOElement" 3 "Tue Jun 23 2026 23:48:38" "Version 4.0.10" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoGLVBOElement \- The \fBSoGLVBOElement\fP class is used to store VBO state\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherits \fBSoElement\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual void \fBinit\fP (\fBSoState\fP *state)" .br .ti -1c .RI "virtual void \fBpush\fP (\fBSoState\fP *state)" .br .ti -1c .RI "virtual void \fBpop\fP (\fBSoState\fP *state, const \fBSoElement\fP *prevtopelement)" .br .ti -1c .RI "virtual SbBool \fBmatches\fP (const \fBSoElement\fP *elt) const" .br .ti -1c .RI "virtual \fBSoElement\fP * \fBcopyMatchInfo\fP (void) const" .br .ti -1c .RI "SoVBO * \fBgetVertexVBO\fP (void) const" .br .ti -1c .RI "SoVBO * \fBgetNormalVBO\fP (void) const" .br .ti -1c .RI "SoVBO * \fBgetColorVBO\fP (void) const" .br .ti -1c .RI "int \fBgetNumTexCoordVBO\fP (void) const" .br .ti -1c .RI "SoVBO * \fBgetTexCoordVBO\fP (const int idx) const" .br .in -1c Public Member Functions inherited from \fBSoElement\fP .in +1c .ti -1c .RI "const \fBSoType\fP \fBgetTypeId\fP (void) const" .br .ti -1c .RI "int \fBgetStackIndex\fP (void) const" .br .ti -1c .RI "void \fBsetDepth\fP (const int \fBdepth\fP)" .br .ti -1c .RI "int \fBgetDepth\fP (void) const" .br .ti -1c .RI "virtual void \fBprint\fP (FILE *file=stdout) const" .br .ti -1c .RI "virtual \fB~SoElement\fP ()" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static int \fBgetClassStackIndex\fP (void)" .br .ti -1c .RI "static void * \fBcreateInstance\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .ti -1c .RI "static SbBool \fBshouldCreateVBO\fP (\fBSoState\fP *state, const int numdata)" .br .ti -1c .RI "static void \fBsetVertexVBO\fP (\fBSoState\fP *state, SoVBO *vbo)" .br .ti -1c .RI "static void \fBsetNormalVBO\fP (\fBSoState\fP *state, SoVBO *vbo)" .br .ti -1c .RI "static void \fBsetColorVBO\fP (\fBSoState\fP *state, SoVBO *vbo)" .br .ti -1c .RI "static void \fBsetTexCoordVBO\fP (\fBSoState\fP *state, const int unit, SoVBO *vbo)" .br .ti -1c .RI "static const \fBSoGLVBOElement\fP * \fBgetInstance\fP (\fBSoState\fP *state)" .br .in -1c Static Public Member Functions inherited from \fBSoElement\fP .in +1c .ti -1c .RI "static void \fBinitClass\fP (void)" .br .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static int \fBgetClassStackIndex\fP (void)" .br .ti -1c .RI "static void \fBinitElements\fP (void)" .br .ti -1c .RI "static int \fBgetNumStackIndices\fP (void)" .br .ti -1c .RI "static \fBSoType\fP \fBgetIdFromStackIndex\fP (const int \fBstackIndex\fP)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "\fBSoGLVBOElement\fP (void)" .br .ti -1c .RI "virtual \fB~SoGLVBOElement\fP ()" .br .in -1c Protected Member Functions inherited from \fBSoElement\fP .in +1c .ti -1c .RI "\fBSoElement\fP (void)" .br .ti -1c .RI "void \fBcapture\fP (\fBSoState\fP *const state) const" .br .ti -1c .RI "virtual void \fBcaptureThis\fP (\fBSoState\fP *state) const" .br .ti -1c .RI "void \fBsetTypeId\fP (const \fBSoType\fP \fBtypeId\fP)" .br .ti -1c .RI "void \fBsetStackIndex\fP (const int index)" .br .ti -1c .RI "\fBSoElement\fP * \fBgetNextInStack\fP (void) const" .br .ti -1c .RI "\fBSoElement\fP * \fBgetNextFree\fP (void) const" .br .in -1c .SS "Static Protected Member Functions" .in +1c .ti -1c .RI "static \fBSoGLVBOElement\fP * \fBgetElement\fP (\fBSoState\fP *state)" .br .in -1c Static Protected Member Functions inherited from \fBSoElement\fP .in +1c .ti -1c .RI "static \fBSoElement\fP * \fBgetElement\fP (\fBSoState\fP *const state, const int \fBstackIndex\fP)" .br .ti -1c .RI "static const \fBSoElement\fP * \fBgetConstElement\fP (\fBSoState\fP *const state, const int \fBstackIndex\fP)" .br .ti -1c .RI "static int \fBcreateStackIndex\fP (const \fBSoType\fP id)" .br .in -1c .SS "Additional Inherited Members" Protected Attributes inherited from \fBSoElement\fP .in +1c .ti -1c .RI "\fBSoType\fP \fBtypeId\fP" .br .ti -1c .RI "int \fBstackIndex\fP" .br .ti -1c .RI "int \fBdepth\fP" .br .in -1c Static Protected Attributes inherited from \fBSoElement\fP .in +1c .ti -1c .RI "static int \fBclassStackIndex\fP" .br .ti -1c .RI "static \fBSoTypeList\fP * \fBstackToType\fP" .br .in -1c .SH "Detailed Description" .PP The \fBSoGLVBOElement\fP class is used to store VBO state\&. FIXME: write doc\&. .PP Be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2\&.1 API\&. .br .PP \fBSince\fP .RS 4 Coin 2\&.5 .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "SoGLVBOElement::SoGLVBOElement (void )\fR [protected]\fP" Constructor\&. .SS "SoGLVBOElement::~SoGLVBOElement ()\fR [protected]\fP, \fR [virtual]\fP" Destructor\&. .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoGLVBOElement::getClassTypeId (void )\fR [static]\fP" This static method returns the \fBSoType\fP object associated with objects of this class\&. .SS "int SoGLVBOElement::getClassStackIndex (void )\fR [static]\fP" This static method returns the state stack index for the class\&. .SS "void * SoGLVBOElement::createInstance (void )\fR [static]\fP" \fIThis API member is considered internal to the library, as it is not likely to be of interest to the application programmer\&.\fP .br .br Creates a new instance of the class type corresponding to the \fBSoType\fP object\&. .SS "void SoGLVBOElement::initClass (void )\fR [static]\fP" Initialize relevant common data for all instances, like the type system\&. .SS "SbBool SoGLVBOElement::shouldCreateVBO (\fBSoState\fP * state, const int numdata)\fR [static]\fP" Returns \fITRUE\fP if VBO is supported for the current context, and if numdata is between the limits set for VBO rendering\&. .SS "void SoGLVBOElement::setVertexVBO (\fBSoState\fP * state, SoVBO * vbo)\fR [static]\fP" Sets the vertex VBO\&. .SS "void SoGLVBOElement::setNormalVBO (\fBSoState\fP * state, SoVBO * vbo)\fR [static]\fP" Sets the normal VBO\&. .SS "void SoGLVBOElement::setColorVBO (\fBSoState\fP * state, SoVBO * vbo)\fR [static]\fP" Sets the color VBO\&. .SS "void SoGLVBOElement::setTexCoordVBO (\fBSoState\fP * state, const int unit, SoVBO * vbo)\fR [static]\fP" Sets the texture coordinate VBO\&. .SS "const \fBSoGLVBOElement\fP * SoGLVBOElement::getInstance (\fBSoState\fP * state)\fR [static]\fP" Returns a read-only element instance\&. .SS "void SoGLVBOElement::init (\fBSoState\fP * state)\fR [virtual]\fP" This function initializes the element type in the given \fBSoState\fP\&. It is called for the first element of each enabled element type in \fBSoState\fP objects\&. .PP Reimplemented from \fBSoElement\fP\&. .SS "void SoGLVBOElement::push (\fBSoState\fP * state)\fR [virtual]\fP" This method is called every time a new element is required in one of the stacks\&. This happens when a writable element is requested, using \fBSoState::getElement()\fP or indirectly \fBSoElement::getElement()\fP, and the depth of the current element is less than the state depth\&. .PP Override this method if your element needs to copy data from the previous top of stack\&. The \fBpush()\fP method is called on the new element, and the previous element can be found using \fBSoElement::getNextInStack()\fP\&. .PP Reimplemented from \fBSoElement\fP\&. .SS "void SoGLVBOElement::pop (\fBSoState\fP * state, const \fBSoElement\fP * prevTopElement)\fR [virtual]\fP" This method is called when the state is popped, and the depth of the element is bigger than the current state depth\&. \fBpop()\fP is called on the new top of stack, and a pointer to the previous top of stack is passed in \fIprevTopElement\fP\&. .PP Override this method if you need to copy some state information from the previous top of stack\&. .PP Reimplemented from \fBSoElement\fP\&. .SS "SbBool SoGLVBOElement::matches (const \fBSoElement\fP * element) const\fR [virtual]\fP" This function returns \fRTRUE\fP is the element matches another element (of the same class), with respect to cache validity\&. .PP If the application programmer's extension element has a \fBmatches()\fP function, it should also have a \fBcopyMatchInfo()\fP function\&. .PP Implements \fBSoElement\fP\&. .SS "\fBSoElement\fP * SoGLVBOElement::copyMatchInfo (void ) const\fR [virtual]\fP" This function creates a copy of the element that contains enough information to enable the \fBmatches()\fP function to work\&. .PP Used to help with scene graph traversal caching operations\&. .PP Implements \fBSoElement\fP\&. .SS "\fBSoGLVBOElement\fP * SoGLVBOElement::getElement (\fBSoState\fP * state)\fR [static]\fP, \fR [protected]\fP" Returns a writable element instance\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.