SOGLMULTITEXTUREMATRIXELEMENT(3coin3)

πŸ“¦ version 3.1.3, in fedora 43, fedora 44

πŸ‘‘ NAME πŸ‘‘

SoGLMultiTextureMatrixElement β€” bestie, this class is literally the one that updates the OpenGL texture matrix. that's it, that's the whole job. πŸ’…

this is SoGLMultiTextureMatrixElement(3) from the Library Functions Manual, and yes she's that girl.


✨ SYNOPSIS ✨

okay so first you gotta pull her in:

#include <Inventor/elements/SoGLMultiTextureMatrixElement.h>

Inherits SoMultiTextureMatrixElement. (she has a whole family tree, we'll get to it 🫢)

🌸 Public Member Functions

  • virtual void init (SoState *state)
  • virtual void push (SoState *state)
  • virtual void pop (SoState *state, const SoElement *prevTopElement)
  • virtual void multElt (const int unit, const SbMatrix &matrix)
  • virtual void setElt (const int unit, const SbMatrix &matrix)

πŸŽ€ Public Member Functions inherited from SoAccumulatedElement

  • virtual SbBool matches (const SoElement *element) const

πŸŽ€ Public Member Functions inherited from SoElement

  • const SoType getTypeId (void) const
  • int getStackIndex (void) const
  • void setDepth (const int depth)
  • int getDepth (void) const
  • virtual void print (FILE *file=stdout) const
  • virtual ~SoElement ()

⭐ Static Public Member Functions

  • static SoType getClassTypeId (void)
  • static int getClassStackIndex (void)
  • static void * createInstance (void)
  • static void initClass (void)

⭐ Static Public Member Functions inherited from SoMultiTextureMatrixElement

  • static SoType getClassTypeId (void)
  • static int getClassStackIndex (void)
  • static void * createInstance (void)
  • static void initClass (void)
  • static void set (SoState *const state, SoNode *const node, const int unit, const SbMatrix &matrix)
  • static void mult (SoState *const state, SoNode *const node, const int unit, const SbMatrix &matrix)
  • static const SbMatrix & get (SoState *const state, const int unit)

⭐ Static Public Member Functions inherited from SoAccumulatedElement

  • 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 ~SoGLMultiTextureMatrixElement ()

πŸ¦‹ Protected Member Functions inherited from SoMultiTextureMatrixElement

  • SoMultiTextureMatrixElement (void)
  • virtual ~SoMultiTextureMatrixElement ()
  • UnitData & getUnitData (const int unit)
  • const UnitData & getUnitData (const int unit) const
  • virtual const SbMatrix & getElt (const int unit) const

πŸ¦‹ Protected Member Functions inherited from SoAccumulatedElement

  • void clearNodeIds (void)
  • void addNodeId (const SoNode *const node)
  • void setNodeId (const SoNode *const node)
  • void copyNodeIds (const SoAccumulatedElement *copyfrom)
  • virtual SoElement * copyMatchInfo (void) const
  • virtual void captureThis (SoState *state) const

πŸ¦‹ Protected Member Functions inherited from SoElement

  • SoElement (void)
  • void capture (SoState *const 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 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 SoAccumulatedElement

  • SbList< uint32_t > nodeIds

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 πŸ’œ

SoGLMultiTextureMatrixElement is the class used to update the OpenGL texture matrix. that's the whole point of her, no side quests. πŸ”₯

now here's the tea, and it's a weird one: since β€” for some genuinely weird reason β€” most OpenGL implementations have a very small texture matrix stack, and since the matrix stack is also broken on many OpenGL implementations, the texture matrix is always loaded into OpenGL. so we do not push() and pop() matrices. periodt. no cap. πŸ’…


πŸ’€ Constructor & Destructor Documentation πŸ’€

SoGLMultiTextureMatrixElement::~SoGLMultiTextureMatrixElement (void ) [protected], [virtual]

it's the destructor, bestie. she cleans up. 🫢


πŸ”₯ Member Function Documentation πŸ”₯

void * SoGLMultiTextureMatrixElement::createInstance (void ) [static]

this API member is considered internal to the library, since it's not likely to be of interest to the application programmer. so like… backstage pass energy, not main character energy. don't stress about her. πŸ™ˆ

void SoGLMultiTextureMatrixElement::init (SoState * state) [virtual]

this function initializes the element type in the given SoState. it's called for the first element of each enabled element type in SoState objects. ⭐

Reimplemented from SoMultiTextureMatrixElement.

void SoGLMultiTextureMatrixElement::push (SoState * state) [virtual]

this method is called every time a new element is required in one of the stacks. that 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 SoMultiTextureMatrixElement.

void SoGLMultiTextureMatrixElement::pop (SoState * state, const SoElement * prevTopElement) [virtual]

this method is callled when the state is popped β€” yes, "callled", with three l's, that's canon, we don't make the rules πŸ’€ β€” 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.

void SoGLMultiTextureMatrixElement::multElt (const int unit, const SbMatrix & matrix) [virtual]

virtual method which is called from mult(). it multiplies matrix into element matrix. πŸ”₯

Reimplemented from SoMultiTextureMatrixElement.

void SoGLMultiTextureMatrixElement::setElt (const int unit, const SbMatrix & matrix) [virtual]

virtual method which is called from set(). it sets matrix intp element matrix β€” and yeah that's a typo for "into", the original really does say it like that, so we keep it, no notes πŸ“.

Reimplemented from SoMultiTextureMatrixElement.


🫢 Author 🫢

generated automatically by Doxygen for Coin, straight from the source code. the robots did this one, we're just vibing on top of it. πŸ’–


and that's the whole page, bestie!! she's from Coin, Version 3.1.3, and the page is SoGLMultiT...trixElement(3) β€” go forth and update those texture matrices, you absolute icon πŸ‘‘βœ¨πŸ¦‹

πŸ“¦ where this page comes from