SoGLDisplayList(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– SoGLDisplayList β€” the SoGLDisplayList(3) glow-up πŸ’–

okay bestie, welcome to the Coin corner of your terminal. this is the manual page for SoGLDisplayList, section 3 of the manual, and yes we're about to make OpenGL display lists feel like a whole personality. sit down, hydrate, let's go 🫢


✨ NAME ✨

SoGLDisplayList β€” the class that stores and manages OpenGL display lists. that's literally the whole job. it's giving storage unit for your GPU's fave little bundles. no cap.


🌸 SYNOPSIS 🌸

#include <Inventor/elements/SoGLDisplayList.h>

πŸŽ€ Public Types πŸŽ€

enum Type { DISPLAY_LIST, TEXTURE_OBJECT }

just two vibes to choose from: DISPLAY_LIST or TEXTURE_OBJECT. pick your fighter πŸ’…

πŸ¦‹ Public Member Functions πŸ¦‹

SoGLDisplayList (SoState *state, Type type, int allocnum=1, SbBool
    mipmaptexobj=FALSE)
void ref (void)
void unref (SoState *state=NULL)
void open (SoState *state, int index=0)
void close (SoState *state)
void call (SoState *state, int index=0)
void addDependency (SoState *state)
SbBool isMipMapTextureObject (void) const
Type getType (void) const
int getNumAllocated (void) const
unsigned int getFirstIndex (void) const
int getContext (void) const
void setTextureTarget (int target)
int getTextureTarget (void) const

look at that roster. that's a full cast, main character energy from top to bottom πŸ‘‘


πŸ’œ Detailed Description πŸ’œ

okay so SoGLDisplayList stores and manages OpenGL display lists. say it with me. that's the bit.

now here's the tea you actually need: the TEXTURE_OBJECT type is not directly supported in Coin. 😭 and it's not a bug, it's a choice β€” Coin handles textures differently, in a more flexible class called SoGLImage, which also stores some info about the texture used when rendering. so it's not that textures were abandoned, they just moved into a nicer apartment. 🏑

but listen β€” old code that uses this element should not stop working. periodt. the texture object extension just won't get used, and the texture gets stored in a display list instead. it's fine. everything's fine. πŸ’…


⭐ Constructor & Destructor Documentation ⭐

πŸ“ SoGLDisplayList::SoGLDisplayList (SoState * state, Type type, int allocnum = 1, SbBool mipmaptexobj = FALSE)

Constructor. that's it, that's the description β€” it constructs. iconic brevity, honestly ✨


🌈 Member Function Documentation 🌈

πŸ’– void SoGLDisplayList::ref (void )

Increase reference count for this display list / texture object. keep it alive, bestie 🫢

πŸ’– void SoGLDisplayList::unref (SoState * state = NULL)

Decrease reference count for this instance. and here's the dramatic part: when reference count reaches 0, the instance is deleted. πŸ’€ poof. gone. so don't unref what you still need, iykyk.

πŸ’– void SoGLDisplayList::open (SoState * state, int index = 0)

Open this display list / texture object. like unzipping it for business πŸŽ€

πŸ’– void SoGLDisplayList::close (SoState * state)

Close this display list / texture object. zip it back up, we're done here ✨

πŸ’– void SoGLDisplayList::call (SoState * state, int index = 0)

Execute this display list / texture object. go off, run it, slay πŸ”₯

πŸ’– void SoGLDisplayList::addDependency (SoState * state)

Create a dependency on the display list. attachments. commitment. it's giving loyalty πŸ’œ

πŸ’– SbBool SoGLDisplayList::isMipMapTextureObject (void ) const

Returns whether the texture object stored in this instance was created with mipmap data. heads up: this method is an extension versus the Open Inventor API, so it's a Coin extra, not a classic. πŸ¦‹

πŸ’– SoGLDisplayList::Type SoGLDisplayList::getType (void ) const

Return type. Display list or texture object. simple. elegant. no notes. πŸ’…

πŸ’– int SoGLDisplayList::getNumAllocated (void ) const

Return number of display lists / texture objects allocated. the headcount πŸ“‹

πŸ’– unsigned int SoGLDisplayList::getFirstIndex (void ) const

Return first GL index for this display list. where it all begins, literally the origin story ⭐

πŸ’– int SoGLDisplayList::getContext (void ) const

Return an id for the current context. your context's little name tag 🏷️

πŸ’– void SoGLDisplayList::setTextureTarget (int target)

Sets the texture object target.

Since: Coin 2.5 ✨

πŸ’– int SoGLDisplayList::getTextureTarget (void ) const

Returns the texture target.

Since: Coin 2.5 ✨


🧚 Author 🧚

Generated automatically by Doxygen for Coin from the source code. not a human, not a poet, just Doxygen doing its little robot thing πŸ€–πŸ’–


and that's the whole page bestie!! no cap, you now know SoGLDisplayList better than most people know their own wifi password πŸŽ€

okay and for the cute sign-off: this was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, and it's the SoGLDisplayList(3) page from the Coin manual. bye pookie, go compile something beautiful πŸ’œπŸŒΈ

πŸ“¦ where this page comes from