SoGLVBOElement(3)
π SoGLVBOElement(3) π
okay bestie, welcome to the Coin manual, we're doing the whole thing, no skimming, no cap. this one's about SoGLVBOElement, and yes it lives in section 3 of the manual. grab a snack, we're going in π
β¨ NAME β¨
SoGLVBOElement β the class that's literally just here to store VBO state. that's the whole job. icon behaviour honestly π
π¦ SYNOPSIS π¦
#include <Inventor/elements/SoGLVBOElement.h>
Inherits SoElement. yes she's part of the family tree, we love a legacy lineage π
πΈ Public Member Functions πΈ
virtual void init (SoState *state)virtual void push (SoState *state)virtual void pop (SoState *state, const SoElement *prevtopelement)virtual SbBool matches (const SoElement *elt) constvirtual SoElement * copyMatchInfo (void) constSoVBO * getVertexVBO (void) constSoVBO * getNormalVBO (void) constSoVBO * getColorVBO (void) constint getNumTexCoordVBO (void) constSoVBO * getTexCoordVBO (const int idx) const
π Public Member Functions inherited from SoElement
const SoType getTypeId (void) constint getStackIndex (void) constvoid setDepth (const int depth)int getDepth (void) constvirtual void print (FILE *file=stdout) constvirtual ~SoElement ()
β Static Public Member Functions β
static SoType getClassTypeId (void)static int getClassStackIndex (void)static void * createInstance (void)static void initClass (void)static SbBool shouldCreateVBO (SoState *state, const int numdata)static void setVertexVBO (SoState *state, SoVBO *vbo)static void setNormalVBO (SoState *state, SoVBO *vbo)static void setColorVBO (SoState *state, SoVBO *vbo)static void setTexCoordVBO (SoState *state, const int unit, SoVBO *vbo)static const SoGLVBOElement * getInstance (SoState *state)
π Static Public Member Functions inherited from SoElement
static void initClass (void)static SoType getClassTypeId (void)static int getClassStackIndex (void)static void initElements (void)static int getNumStackIndices (void)static SoType getIdFromStackIndex (const int stackIndex)
π Protected Member Functions π
SoGLVBOElement (void)virtual ~SoGLVBOElement ()
π Protected Member Functions inherited from SoElement
SoElement (void)void capture (SoState *const state) constvirtual void captureThis (SoState *state) constvoid setTypeId (const SoType typeId)void setStackIndex (const int index)SoElement * getNextInStack (void) constSoElement * getNextFree (void) const
π Static Protected Member Functions π
static SoGLVBOElement * getElement (SoState *state)
π Static Protected Member Functions inherited from SoElement
static SoElement * getElement (SoState *const state, const int stackIndex)static const SoElement * getConstElement (SoState *const state, const int stackIndex)static int createStackIndex (const SoType id)
π«Ά Additional Inherited Members π«Ά
Protected Attributes inherited from SoElement
SoType typeIdint stackIndexint depth
Static Protected Attributes inherited from SoElement
static int classStackIndexstatic SoTypeList * stackToType
π Detailed Description π
The SoGLVBOElement class is used to store VBO state. that's it, that's the vibe check, she passed β
FIXME: write doc.
not me reading the actual source and finding a literal FIXME: write doc. in the docs π the devs left a note for themselves and just... never came back. iconic in a chaotic way, honestly.
Be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API. so if you're porting old SGI code, do not expect her to show up, she's Coin-only, bestie π§
Since
Coin 2.5 β¨ (she's been around a minute)
π Constructor & Destructor Documentation π
SoGLVBOElement::SoGLVBOElement (void ) [protected]
Constructor. hello gorgeous, you're born π
SoGLVBOElement::~SoGLVBOElement () [protected], [virtual]
Destructor. bye babe, thanks for the VBO state π«‘
π₯ Member Function Documentation π₯
SoType SoGLVBOElement::getClassTypeId (void ) [static]
This static method returns the SoType object associated with objects of this class. it's giving "who am I in the type system" πͺͺ
int SoGLVBOElement::getClassStackIndex (void ) [static]
This static method returns the state stack index for the class. where she sits in the stack, fr fr.
void * SoGLVBOElement::createInstance (void ) [static]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
(lowkey a read, but okay π) Creates a new instance of the class type corresponding to the SoType object.
void SoGLVBOElement::initClass (void ) [static]
Initialize relevant common data for all instances, like the type system. the setup era π±
SbBool SoGLVBOElement::shouldCreateVBO (SoState * state, const int numdata) [static]
Returns TRUE if VBO is supported for the current context, and if numdata is between the limits set for VBO rendering. so like β do we make a VBO or not? this method is the bouncer at the door π
void SoGLVBOElement::setVertexVBO (SoState * state, SoVBO * vbo) [static]
Sets the vertex VBO.
void SoGLVBOElement::setNormalVBO (SoState * state, SoVBO * vbo) [static]
Sets the normal VBO.
void SoGLVBOElement::setColorVBO (SoState * state, SoVBO * vbo) [static]
Sets the color VBO.
void SoGLVBOElement::setTexCoordVBO (SoState * state, const int unit, SoVBO * vbo) [static]
Sets the texture coordinate VBO.
const SoGLVBOElement * SoGLVBOElement::getInstance (SoState * state) [static]
Returns a read-only element instance. look, don't touch π
void SoGLVBOElement::init (SoState * state) [virtual]
This function initializes the element type in the given SoState. It is called for the first element of each enabled element type in SoState objects.
Reimplemented from SoElement.
void SoGLVBOElement::push (SoState * state) [virtual]
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 SoState::getElement() or indirectly SoElement::getElement(), and the depth of the current element is less than the state depth.
Override this method if your element needs to copy data from the previous top of stack. The push() method is called on the new element, and the previous element can be found using SoElement::getNextInStack().
Reimplemented from SoElement.
void SoGLVBOElement::pop (SoState * state, const SoElement * prevTopElement) [virtual]
This method is called when the state is popped, and the depth of the element is bigger than the current state depth. pop() is called on the new top of stack, and a pointer to the previous top of stack is passed in prevTopElement.
Override this method if you need to copy some state information from the previous top of stack.
Reimplemented from SoElement.
SbBool SoGLVBOElement::matches (const SoElement * element) const [virtual]
This function returns TRUE is the element matches another element (of the same class), with respect to cache validity.
If the application programmer's extension element has a matches() function, it should also have a copyMatchInfo() function.
Implements SoElement.
SoElement * SoGLVBOElement::copyMatchInfo (void ) const [virtual]
This function creates a copy of the element that contains enough information to enable the matches() function to work.
Used to help with scene graph traversal caching operations.
Implements SoElement.
SoGLVBOElement * SoGLVBOElement::getElement (SoState * state) [static], [protected]
Returns a writable element instance. (unlike getInstance(), which is the read-only one β know the difference bestie, it matters π«Ά)
πΈ Author πΈ
Generated automatically by Doxygen for Coin from the source code. yes the robot wrote it, we respect the robot π€β¨
and that's the whole page, you made it to the end, so proud of you π₯Ή
this was Coin documentation, Version 4.0.10, dated Thu Jun 25 2026 00:00:00. go forth and manage your VBO state responsibly, mwah π π
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms