.TH "SoGLMultiTextureEnabledElement" 3 "Tue Jun 23 2026 23:48:38" "Version 4.0.10" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoGLMultiTextureEnabledElement \- The \fBSoGLMultiTextureEnabledElement\fP class is an element which controls whether texturing is enabled or not\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherits \fBSoMultiTextureEnabledElement\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual void \fBinit\fP (\fBSoState\fP *state)" .br .ti -1c .RI "virtual void \fBpush\fP (\fBSoState\fP *state)" .br .ti -1c .RI "virtual void \fBpop\fP (\fBSoState\fP *state, const \fBSoElement\fP *prevTopElement)" .br .ti -1c .RI "virtual void \fBsetElt\fP (const int unit, const int mode)" .br .in -1c Public Member Functions inherited from \fBSoMultiTextureEnabledElement\fP .in +1c .ti -1c .RI "virtual SbBool \fBmatches\fP (const \fBSoElement\fP *elem) const" .br .ti -1c .RI "\fBSoElement\fP * \fBcopyMatchInfo\fP (void) const" .br .in -1c Public Member Functions inherited from \fBSoElement\fP .in +1c .ti -1c .RI "const \fBSoType\fP \fBgetTypeId\fP (void) const" .br .ti -1c .RI "int \fBgetStackIndex\fP (void) const" .br .ti -1c .RI "void \fBsetDepth\fP (const int \fBdepth\fP)" .br .ti -1c .RI "int \fBgetDepth\fP (void) const" .br .ti -1c .RI "virtual void \fBprint\fP (FILE *file=stdout) const" .br .ti -1c .RI "virtual \fB~SoElement\fP ()" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static int \fBgetClassStackIndex\fP (void)" .br .ti -1c .RI "static void * \fBcreateInstance\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .in -1c Static Public Member Functions inherited from \fBSoMultiTextureEnabledElement\fP .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static int \fBgetClassStackIndex\fP (void)" .br .ti -1c .RI "static void * \fBcreateInstance\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .ti -1c .RI "static void \fBset\fP (\fBSoState\fP *state, \fBSoNode\fP *node, const int unit, const SbBool enabled)" .br .ti -1c .RI "static SbBool \fBget\fP (\fBSoState\fP *state, const int unit=0)" .br .ti -1c .RI "static const SbBool * \fBgetEnabledUnits\fP (\fBSoState\fP *state, int &lastenabled)" .br .ti -1c .RI "static const Mode * \fBgetActiveUnits\fP (\fBSoState\fP *state, int &lastenabled)" .br .ti -1c .RI "static void \fBenableRectangle\fP (\fBSoState\fP *state, \fBSoNode\fP *node, const int unit=0)" .br .ti -1c .RI "static void \fBenableCubeMap\fP (\fBSoState\fP *state, \fBSoNode\fP *node, const int unit=0)" .br .ti -1c .RI "static void \fBenableTexture3\fP (\fBSoState\fP *state, \fBSoNode\fP *node, const int unit=0)" .br .ti -1c .RI "static Mode \fBgetMode\fP (\fBSoState\fP *state, const int unit=0)" .br .ti -1c .RI "static void \fBdisableAll\fP (\fBSoState\fP *state)" .br .ti -1c .RI "static void \fBset\fP (\fBSoState\fP *state, const SbBool enabled)" .br .ti -1c .RI "static void \fBset\fP (\fBSoState\fP *state, \fBSoNode\fP *node, const SbBool enabled)" .br .in -1c Static Public Member Functions inherited from \fBSoElement\fP .in +1c .ti -1c .RI "static void \fBinitClass\fP (void)" .br .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static int \fBgetClassStackIndex\fP (void)" .br .ti -1c .RI "static void \fBinitElements\fP (void)" .br .ti -1c .RI "static int \fBgetNumStackIndices\fP (void)" .br .ti -1c .RI "static \fBSoType\fP \fBgetIdFromStackIndex\fP (const int \fBstackIndex\fP)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual \fB~SoGLMultiTextureEnabledElement\fP ()" .br .in -1c Protected Member Functions inherited from \fBSoMultiTextureEnabledElement\fP .in +1c .ti -1c .RI "\fBSoMultiTextureEnabledElement\fP (void)" .br .ti -1c .RI "virtual \fB~SoMultiTextureEnabledElement\fP ()" .br .ti -1c .RI "int \fBgetMaxUnits\fP () const" .br .ti -1c .RI "SbBool \fBisEnabled\fP (const int unit) const" .br .ti -1c .RI "Mode \fBgetMode\fP (const int unit) const" .br .in -1c Protected Member Functions inherited from \fBSoElement\fP .in +1c .ti -1c .RI "\fBSoElement\fP (void)" .br .ti -1c .RI "void \fBcapture\fP (\fBSoState\fP *const state) const" .br .ti -1c .RI "virtual void \fBcaptureThis\fP (\fBSoState\fP *state) const" .br .ti -1c .RI "void \fBsetTypeId\fP (const \fBSoType\fP \fBtypeId\fP)" .br .ti -1c .RI "void \fBsetStackIndex\fP (const int index)" .br .ti -1c .RI "\fBSoElement\fP * \fBgetNextInStack\fP (void) const" .br .ti -1c .RI "\fBSoElement\fP * \fBgetNextFree\fP (void) const" .br .in -1c .SS "Additional Inherited Members" Public Types inherited from \fBSoMultiTextureEnabledElement\fP .in +1c .ti -1c .RI "enum \fBMode\fP { \fBDISABLED\fP = 0, \fBTEXTURE2D\fP, \fBRECTANGLE\fP, \fBCUBEMAP\fP, \fBTEXTURE3D\fP }" .br .in -1c Static Protected Member Functions inherited from \fBSoElement\fP .in +1c .ti -1c .RI "static \fBSoElement\fP * \fBgetElement\fP (\fBSoState\fP *const state, const int \fBstackIndex\fP)" .br .ti -1c .RI "static const \fBSoElement\fP * \fBgetConstElement\fP (\fBSoState\fP *const state, const int \fBstackIndex\fP)" .br .ti -1c .RI "static int \fBcreateStackIndex\fP (const \fBSoType\fP id)" .br .in -1c Protected Attributes inherited from \fBSoElement\fP .in +1c .ti -1c .RI "\fBSoType\fP \fBtypeId\fP" .br .ti -1c .RI "int \fBstackIndex\fP" .br .ti -1c .RI "int \fBdepth\fP" .br .in -1c Static Protected Attributes inherited from \fBSoElement\fP .in +1c .ti -1c .RI "static int \fBclassStackIndex\fP" .br .ti -1c .RI "static \fBSoTypeList\fP * \fBstackToType\fP" .br .in -1c .SH "Detailed Description" .PP The \fBSoGLMultiTextureEnabledElement\fP class is an element which controls whether texturing is enabled or not\&. .SH "Constructor & Destructor Documentation" .PP .SS "SoGLMultiTextureEnabledElement::~SoGLMultiTextureEnabledElement (void )\fR [protected]\fP, \fR [virtual]\fP" Destructor\&. .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoGLMultiTextureEnabledElement::getClassTypeId (void )\fR [static]\fP" This static method returns the \fBSoType\fP object associated with objects of this class\&. .SS "int SoGLMultiTextureEnabledElement::getClassStackIndex (void )\fR [static]\fP" This static method returns the state stack index for the class\&. .SS "void * SoGLMultiTextureEnabledElement::createInstance (void )\fR [static]\fP" \fIThis API member is considered internal to the library, as it is not likely to be of interest to the application programmer\&.\fP .br .br Creates a new instance of the class type corresponding to the \fBSoType\fP object\&. .SS "void SoGLMultiTextureEnabledElement::initClass (void )\fR [static]\fP" Initialize relevant common data for all instances, like the type system\&. .SS "void SoGLMultiTextureEnabledElement::init (\fBSoState\fP * state)\fR [virtual]\fP" This function initializes the element type in the given \fBSoState\fP\&. It is called for the first element of each enabled element type in \fBSoState\fP objects\&. .PP Reimplemented from \fBSoMultiTextureEnabledElement\fP\&. .SS "void SoGLMultiTextureEnabledElement::push (\fBSoState\fP * state)\fR [virtual]\fP" 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 \fBSoState::getElement()\fP or indirectly \fBSoElement::getElement()\fP, and the depth of the current element is less than the state depth\&. .PP Override this method if your element needs to copy data from the previous top of stack\&. The \fBpush()\fP method is called on the new element, and the previous element can be found using \fBSoElement::getNextInStack()\fP\&. .PP Reimplemented from \fBSoMultiTextureEnabledElement\fP\&. .SS "void SoGLMultiTextureEnabledElement::pop (\fBSoState\fP * state, const \fBSoElement\fP * prevTopElement)\fR [virtual]\fP" This method is called when the state is popped, and the depth of the element is bigger than the current state depth\&. \fBpop()\fP is called on the new top of stack, and a pointer to the previous top of stack is passed in \fIprevTopElement\fP\&. .PP Override this method if you need to copy some state information from the previous top of stack\&. .PP Reimplemented from \fBSoElement\fP\&. .SS "void SoGLMultiTextureEnabledElement::setElt (const int unit, const int mode_in)\fR [virtual]\fP" virtual element set function\&. .PP Reimplemented from \fBSoMultiTextureEnabledElement\fP\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.