SOGLTEXTUREMATRIXELEMENT(3coin3)
β¨ NAME β¨
SoGLTextureMatrixElement β bestie, this is the class that keeps your OpenGL texture matrix updated π
(it lives in the Coin library, manual section 3, if you were wondering π)
π¦ SYNOPSIS π¦
#include <Inventor/elements/SoGLTextureMatrixElement.h>
It Inherits SoTextureMatrixElement. Family tree energy fr fr πΈ
π Public Member Functions π
virtual void init (SoState *state)virtual void pop (SoState *state, const SoElement *prevTopElement)virtual void setElt (const SbMatrix &matrix)virtual void makeEltIdentity (void)virtual void multElt (const SbMatrix &matrix)virtual void translateEltBy (const SbVec3f &translation)virtual void rotateEltBy (const SbRotation &translation)virtual void scaleEltBy (const SbVec3f &scaleFactor)
π Public Member Functions inherited from SoTextureMatrixElement π
virtual void push (SoState *state)
π Public Member Functions inherited from SoAccumulatedElement π
virtual SbBool matches (const SoElement *element) 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 void setEltIdentity (void)
π Static Public Member Functions inherited from SoTextureMatrixElement π
static SoType getClassTypeId (void)static int getClassStackIndex (void)static void * createInstance (void)static void initClass (void)static void makeIdentity (SoState *const state, SoNode *const node)static void set (SoState *const state, SoNode *const node, const SbMatrix &matrix)static void mult (SoState *const state, SoNode *const node, const SbMatrix &matrix)static void translateBy (SoState *const state, SoNode *const node, const SbVec3f &translation)static void rotateBy (SoState *const state, SoNode *const node, const SbRotation &rotation)static void scaleBy (SoState *const state, SoNode *const node, const SbVec3f &scaleFactor)static const SbMatrix & get (SoState *const state)static void emptyMatrix (SoState *const state)
π 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 ~SoGLTextureMatrixElement ()
πΈ Protected Member Functions inherited from SoTextureMatrixElement πΈ
virtual ~SoTextureMatrixElement ()virtual const SbMatrix & getElt (void) 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) constvirtual void captureThis (SoState *state) const
πΈ Protected Member Functions inherited from SoElement πΈ
SoElement (void)void capture (SoState *const 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 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 SoTextureMatrixElement π§
SbMatrix textureMatrix
π§ Protected Attributes inherited from SoAccumulatedElement π§
SbList< uint32_t > nodeIds
π§ Protected Attributes inherited from SoElement π§
SoType typeIdint stackIndexint depth
π§ Static Protected Attributes inherited from SoElement π§
static int classStackIndexstatic SoTypeList * stackToType
π Detailed Description π
Okay so bestie, the SoGLTextureMatrixElement class is literally here to update the OpenGL texture matrix. That's the whole job. π
Since (for some weird reason π) most OpenGL implementations have a very small texture matrix stack, and since the matrix stack also is broken on many OpenGL implementations, the texture matrix is always loaded into OpenGL. We do not push() and pop() matrices. No cap. π«π§’
π Constructor & Destructor Documentation π
SoGLTextureMatrixElement::~SoGLTextureMatrixElement (void ) [protected], [virtual]
The destructor. It destroys. Iconic behaviour. β¨
π₯ Member Function Documentation π₯
void * SoGLTextureMatrixElement::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. So likeβ¦ you can look at it, but it's giving backstage-pass energy, not front-row. π
void SoGLTextureMatrixElement::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 SoTextureMatrixElement. π«Ά
void SoGLTextureMatrixElement::pop (SoState * state, const SoElement * prevTopElement) [virtual]
This method is callled 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. π
(yes, "callled" β we keep the typo, we respect the source, that's just how it is bestie π)
void SoGLTextureMatrixElement::setElt (const SbMatrix & matrix) [virtual]
Virtual method which is called from set(). Sets the texture matrix to matrix.
This method is an extension versus the Open Inventor API.
Reimplemented from SoTextureMatrixElement. β
void SoGLTextureMatrixElement::makeEltIdentity (void ) [virtual]
Virtual method which is called from makeIdentity(). Sets element matrix to identity.
Reimplemented from SoTextureMatrixElement. πΈ
void SoGLTextureMatrixElement::multElt (const SbMatrix & matrix) [virtual]
Virtual method which is called from mult(). Multiplies matrix into element matrix.
Reimplemented from SoTextureMatrixElement. π
void SoGLTextureMatrixElement::translateEltBy (const SbVec3f & translation) [virtual]
Virtual method which is called from translateBy(). Appends translation to the element matrix.
Reimplemented from SoTextureMatrixElement. π¦
void SoGLTextureMatrixElement::rotateEltBy (const SbRotation & rotation) [virtual]
Virtual method which is called from rotateBy(). Appends rotation to the element matrix.
Reimplemented from SoTextureMatrixElement. π
void SoGLTextureMatrixElement::scaleEltBy (const SbVec3f & scaleFactor) [virtual]
Virtual method which is called from scaleBy(). Append scaleFactor to the element matrix.
Reimplemented from SoTextureMatrixElement. β¨
π Author π
Generated automatically by Doxygen for Coin from the source code. So technically the author is a robot and honestly? The robot ate. π€π
And that's the whole page bestie β no notes, we kept every single inherited member, every signature, every reimplement note. Periodt. π
This was SoGLTextureMatrixElement(3) from Coin, Version 3.1.3 β go forth and texture-map your little heart out, ily, bye! π«Άπβ
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.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