SOGLTEXTUREENABLEDELEMENT(3coin3)
π NAME π
okay so bestie, welcome to SoGLTextureEnabledElement β she's the element that controls whether texturing is enabled or not. that's it, that's the job. π
β¨ SYNOPSIS β¨
#include <Inventor/elements/SoGLTextureEnabledElement.h>
she Inherits SoTextureEnabledElement. family tree goes crazy. π³
π Public Types π
enum Mode { DISABLED, TEXTURE2D, RECTANGLE, CUBEMAP }
π Public Member Functions π
virtual void init (SoState *state)β FIXME: write doc.virtual void push (SoState *state)virtual void pop (SoState *state, const SoElement *prevTopElement)virtual void setElt (int32_t value)β FIXME: write doc.
πΈ Public Member Functions inherited from SoInt32Element πΈ
virtual SbBool matches (const SoElement *element) constvirtual SoElement * copyMatchInfo (void) constvirtual void print (FILE *file) const
πΈ Public Member Functions inherited from SoElement πΈ
const SoType getTypeId (void) constint getStackIndex (void) constvoid 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 void set (SoState *const state, SoNode *const node, const SbBool enabled)static void set (SoState *const state, const SbBool enabled)static SbBool get (SoState *const state)static SbBool getDefault (void)static void enableRectangle (SoState *state, SoNode *node)static void enableCubeMap (SoState *state, SoNode *node)static Mode getMode (SoState *state)
πΈ Static Public Member Functions inherited from SoTextureEnabledElement πΈ
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 SbBool enabled)static SbBool get (SoState *const state)static SbBool getDefault (void)
πΈ Static Public Member Functions inherited from SoInt32Element πΈ
static SoType getClassTypeId (void)static int getClassStackIndex (void)static void initClass (void)static void set (const int index, SoState *const state, SoNode *const node, const int32_t value)static void set (const int index, SoState *const state, const int32_t value)static int32_t get (const int index, SoState *const state)β FIXME: write doc.
πΈ 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 ~SoGLTextureEnabledElement ()
πΈ Protected Member Functions inherited from SoTextureEnabledElement πΈ
virtual ~SoTextureEnabledElement ()
πΈ 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 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 SoInt32Element πΈ
int32_t data
πΈ Protected Attributes inherited from SoElement πΈ
SoType typeIdint stackIndexint depth
πΈ Static Protected Attributes inherited from SoElement πΈ
static int classStackIndexstatic SoTypeList * stackToType
π¦ Detailed Description π¦
so basically, the SoGLTextureEnabledElement class is an element which controls whether texturing is enabled or not. no cap. π
and also, the SoGTexture3EnabledElement class is a an element which stores whether 3D texturing is enabled or not. (yes bestie we're quoting it exactly, even the "a an", we don't edit the lore. π)
See also
SoGLTexture3EnabledElement
okay but heads up, bestie: be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API. so if you're on the ancient lore version, she's not there. π
See also
SoTextureEnabledElement
Since
- Coin 2.0
- TGS Inventor 2.6
π Constructor & Destructor Documentation π
SoGLTextureEnabledElement::~SoGLTextureEnabledElement (void ) [protected], [virtual]
the destructor. she's done, she's logging off, periodt. π
π₯ Member Function Documentation π₯
void * SoGLTextureEnabledElement::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. aka: not your business bestie, move along, the library handles it. π
void SoGLTextureEnabledElement::init (SoState * state) [virtual]
FIXME: write doc. (the docs really said "figure it out" and honestly? relatable. π)
Reimplemented from SoTextureEnabledElement.
void SoGLTextureEnabledElement::push (SoState * state) [virtual]
okay so this method is called every time a new element is required in one of the stacks. this 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 SoElement.
void SoGLTextureEnabledElement::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. (yep, "callled", three l's, that's canon, we don't touch it π«Ά) 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 SoGLTextureEnabledElement::set (SoState *const state, const SbBool enabled) [static]
sets the state of the element. π
SbBool SoGLTextureEnabledElement::get (SoState *const state) [static]
return current state of this element. the vibe check, if you will. π
SbBool SoGLTextureEnabledElement::getDefault (void ) [static]
returns default state of this element (FALSE). she starts off unavailable, iconic behaviour honestly. β¨
void SoGLTextureEnabledElement::setElt (int32_t value) [virtual]
FIXME: write doc. (again π)
Reimplemented from SoTextureEnabledElement.
void SoGLTextureEnabledElement::enableRectangle (SoState * state, SoNode * node) [static]
enables GL_TEXTURE_RECTANGLE_EXT/NV. GL_TEXTURE_2D/GL_TEXTURE_CUBE_MAP will be disabled if it's enabled earlier. π
Since
- Coin 2.2
void SoGLTextureEnabledElement::enableCubeMap (SoState * state, SoNode * node) [static]
enables GL_TEXTURE_CUBE+MAP. GL_TEXTURE_2D and/or GL_TEXTURE_RECTANGLE will be disabled if it's enabled earlier. (yes, the plus sign is right there in the original, we keep it, no edits, fr fr π
)
SoGLTextureEnabledElement::Mode SoGLTextureEnabledElement::getMode (SoState * state) [static]
returns the current texture mode. main character energy, she always knows where she's at. π¦
π Author π
Generated automatically by Doxygen for Coin from the source code.
and that's the whole page bestie!! π this doc was brought to you by Coin, Version 3.1.3, and it's an automatically generated Doxygen situation straight from the source code. slay, stay textured, and remember: FIXME: write doc is a mood we're all living in. πβ¨π«Ά
π¦ 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