.TH "SoGLTextureEnabledElement" 3 "Wed May 23 2012" "Version 3.1.3" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoGLTextureEnabledElement \- .PP The \fBSoGLTextureEnabledElement\fP class is an element which controls whether texturing is enabled or not\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBSoTextureEnabledElement\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "enum \fBMode\fP { \fBDISABLED\fP, \fBTEXTURE2D\fP, \fBRECTANGLE\fP, \fBCUBEMAP\fP }" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual void \fBinit\fP (\fBSoState\fP *state)" .br .RI "\fIFIXME: write doc\&. \fP" .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 (int32_t value)" .br .RI "\fIFIXME: write doc\&. \fP" .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 .ti -1c .RI "static void \fBset\fP (\fBSoState\fP *const state, \fBSoNode\fP *const node, const SbBool enabled)" .br .ti -1c .RI "static void \fBset\fP (\fBSoState\fP *const state, const SbBool enabled)" .br .ti -1c .RI "static SbBool \fBget\fP (\fBSoState\fP *const state)" .br .ti -1c .RI "static SbBool \fBgetDefault\fP (void)" .br .ti -1c .RI "static void \fBenableRectangle\fP (\fBSoState\fP *state, \fBSoNode\fP *node)" .br .ti -1c .RI "static void \fBenableCubeMap\fP (\fBSoState\fP *state, \fBSoNode\fP *node)" .br .ti -1c .RI "static Mode \fBgetMode\fP (\fBSoState\fP *state)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual \fB~SoGLTextureEnabledElement\fP ()" .br .in -1c .SH "Detailed Description" .PP The \fBSoGLTextureEnabledElement\fP class is an element which controls whether texturing is enabled or not\&. The SoGTexture3EnabledElement class is a an element which stores whether 3D texturing is enabled or not\&. .PP Be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2\&.1 API\&. .PP \fBSee also:\fP .RS 4 \fBSoGLTexture3EnabledElement\fP .PP \fBSoTextureEnabledElement\fP .RE .PP \fBSince:\fP .RS 4 Coin 2\&.0 .PP TGS Inventor 2\&.6 .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "SoGLTextureEnabledElement::~SoGLTextureEnabledElement (void)\fC [protected]\fP, \fC [virtual]\fP" The destructor\&. .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoGLTextureEnabledElement::getClassTypeId (void)\fC [static]\fP" This static method returns the class type\&. .PP Reimplemented from \fBSoTextureEnabledElement\fP\&. .SS "int SoGLTextureEnabledElement::getClassStackIndex (void)\fC [static]\fP" This static method returns the state stack index for the class\&. .PP Reimplemented from \fBSoTextureEnabledElement\fP\&. .SS "void * SoGLTextureEnabledElement::createInstance (void)\fC [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 .PP Reimplemented from \fBSoTextureEnabledElement\fP\&. .SS "void SoGLTextureEnabledElement::initClass (void)\fC [static]\fP" Initialize relevant common data for all instances, like the type system\&. .PP Reimplemented from \fBSoTextureEnabledElement\fP\&. .SS "void SoGLTextureEnabledElement::push (\fBSoState\fP *state)\fC [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 \fBSoElement\fP\&. .SS "void SoGLTextureEnabledElement::pop (\fBSoState\fP *state, const \fBSoElement\fP *prevTopElement)\fC [virtual]\fP" This method is callled 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 SoGLTextureEnabledElement::set (\fBSoState\fP *conststate, \fBSoNode\fP *constnode, const SbBoolenabled)\fC [static]\fP" Sets the state of this element\&. .PP Reimplemented from \fBSoTextureEnabledElement\fP\&. .SS "void SoGLTextureEnabledElement::set (\fBSoState\fP *conststate, const SbBoolenabled)\fC [static]\fP" Sets the state of the element\&. .SS "SbBool SoGLTextureEnabledElement::get (\fBSoState\fP *conststate)\fC [static]\fP" Return current state of this element\&. .PP Reimplemented from \fBSoTextureEnabledElement\fP\&. .SS "SbBool SoGLTextureEnabledElement::getDefault (void)\fC [static]\fP" Returns default state of this element (FALSE)\&. .PP Reimplemented from \fBSoTextureEnabledElement\fP\&. .SS "void SoGLTextureEnabledElement::enableRectangle (\fBSoState\fP *state, \fBSoNode\fP *node)\fC [static]\fP" Enables GL_TEXTURE_RECTANGLE_EXT/NV\&. GL_TEXTURE_2D/GL_TEXTURE_CUBE_MAP will be disabled if it's enabled earlier\&. .PP \fBSince:\fP .RS 4 Coin 2\&.2 .RE .PP .SS "void SoGLTextureEnabledElement::enableCubeMap (\fBSoState\fP *state, \fBSoNode\fP *node)\fC [static]\fP" Enables GL_TEXTURE_CUBE+MAP\&. GL_TEXTURE_2D and/or GL_TEXTURE_RECTANGLE will be disabled if it's enabled earlier\&. .SS "SoGLTextureEnabledElement::Mode SoGLTextureEnabledElement::getMode (\fBSoState\fP *state)\fC [static]\fP" Returns the current texture mode\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.