SoGLColorIndexElement(3)

๐Ÿ“ฆ version 2.5.0, in fedora 43, fedora 44

๐ŸŽ€ 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) const
  • int32_t get (const int index) const

๐Ÿฆ‹ Public Member Functions inherited from SoReplacedElement ๐Ÿฆ‹

  • virtual SbBool matches (const SoElement *element) const
  • virtual SoElement * copyMatchInfo () const
  • uint32_t getNodeId () const
  • virtual void print (FILE *file) const

๐Ÿฆ‹ Public Member Functions inherited from SoElement ๐Ÿฆ‹

  • const SoType getTypeId (void) const
  • int getStackIndex (void) const
  • virtual void push (SoState *state)
  • virtual void pop (SoState *state, const SoElement *prevTopElement)
  • void setDepth (const int depth)
  • int getDepth (void) const
  • virtual ~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) const
  • virtual void captureThis (SoState *state) const
  • void setTypeId (const SoType typeId)
  • void setStackIndex (const int index)
  • SoElement * getNextInStack (void) const
  • SoElement * 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 typeId
  • int stackIndex
  • int depth

๐Ÿ“ Static Protected Attributes inherited from SoElement ๐Ÿ“

  • static int classStackIndex
  • static 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