SoGLColorIndexElement(3)
๐ SoGLColorIndexElement(3) ๐
okay bestie, welcome to the Library Functions Manual, this is the page for SoGLColorIndexElement and I'm gonna walk you through every single crumb of it, no cap ๐
โจ NAME โจ
SoGLColorIndexElement โ the class that sets the current OpenGL color. that's it, that's the whole job, she's a simple queen ๐
๐ธ SYNOPSIS ๐ธ
#include <Inventor/elements/SoGLColorIndexElement.h>
Inherits SoReplacedElement.
๐ซ Public Member Functions ๐ซ
virtual void init (SoState *state)int32_t getNum (void) constint32_t get (const int index) const
๐ฆ Public Member Functions inherited from SoReplacedElement ๐ฆ
virtual SbBool matches (const SoElement *element) constvirtual SoElement * copyMatchInfo () constuint32_t getNodeId () constvirtual void print (FILE *file) const
๐ฆ Public Member Functions inherited from SoElement ๐ฆ
const SoType getTypeId (void) constint getStackIndex (void) constvirtual void push (SoState *state)virtual void pop (SoState *state, const SoElement *prevTopElement)void setDepth (const int depth)int getDepth (void) constvirtual ~SoElement ()
โญ Static Public Member Functions โญ
static SoType getClassTypeId (void)static int getClassStackIndex (void)static void * createInstance (void)static void initClass (void)static SbBool isColorIndexMode (SoState *state)static void set (SoState *const state, SoNode *const node, const int32_t numindices, const int32_t *const indices)static const SoGLColorIndexElement * getInstance (SoState *state)static int32_t getDefault (void)
โญ Static Public Member Functions inherited from SoReplacedElement โญ
static SoType getClassTypeId (void)static int getClassStackIndex (void)static void initClass (void)
โญ 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 ๐ง
virtual ~SoGLColorIndexElement ()
๐ง Protected Member Functions inherited from SoReplacedElement ๐ง
virtual ~SoReplacedElement ()
๐ง 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
๐ Additional Inherited Members ๐
๐ Static Protected Member Functions inherited from SoReplacedElement ๐
static SoElement * getElement (SoState *const state, const int stackIndex, SoNode *const node)
๐ 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)
๐ Protected Attributes inherited from SoReplacedElement ๐
uint32_t nodeId
๐ Protected Attributes inherited from SoElement ๐
SoType typeIdint stackIndexint depth
๐ Static Protected Attributes inherited from SoElement ๐
static int classStackIndexstatic SoTypeList * stackToType
๐ Detailed Description ๐
The SoGLColorIndexElement class sets the current OpenGL color. she's giving main character energy in the color department ๐
so listen, this element is only used when the OpenGL canvas is in colorindex mode, ie where colors for individual pixels are fetched from a color lookup table ("CLUT"). and likeโฆ the usual thing to do is to set up a canvas in RGBA truecolor mode, fr fr. that's the normie path and it's fine.
One common use for colorindex mode OpenGL canvases is to use one in the overlay planes (which are usually limited to only 2 or 4 available colors), if supported by the OpenGL hardware and / or driver. lowkey niche, but iconic when it hits โจ
๐ See also ๐
SoColorIndex
๐ซถ Constructor & Destructor Documentation ๐ซถ
SoGLColorIndexElement::~SoGLColorIndexElement () [protected], [virtual]
The destructor. she's leaving the group chat, respectfully ๐
๐ Member Function Documentation ๐
void * SoGLColorIndexElement::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. like, not me peeking at internal stuff, mind your business bestie ๐ญ
SbBool SoGLColorIndexElement::isColorIndexMode (SoState * state) [static]
Returns TRUE if the current GL context is in color index mode. vibe check: are we in colorindex mode or not, that's the whole question ๐ฅ
void SoGLColorIndexElement::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 SoReplacedElement.
void SoGLColorIndexElement::set (SoState *const state, SoNode *const node, const int32_t numindices, const int32_t *const indices) [static]
Sets current color indices. periodt.
Referenced by SoColorIndex::GLRender().
const SoGLColorIndexElement * SoGLColorIndexElement::getInstance (SoState * state) [static]
Returns the current element. the way she justโฆ hands you the element ๐
int32_t SoGLColorIndexElement::getNum (void ) const
Returns number of color indices in element. counting them one by one, obsessed ๐งฎ๐
๐ธ Author ๐ธ
Generated automatically by Doxygen for Coin from the source code.
and that's the whole page bestie!! ๐ซถ this was Coin, Version 2.5.0, serving you SoGLColorIndexElement(3) realness. go forth and set those color indices, ily ๐โจ๐
๐ฆ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 ยท GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 ยท GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 ยท GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms