void SoTexCoordTexgenCB(void *userdata)
The TextureCoordinateFunction nodes that use the GL texgen function to generate texture coordinates m...
const SbVec4f & SoTextureCoordinateFunctionCB(void *userdata, const SbVec3f &point, const SbVec3f &normal)
Function that TextureCoordinateFunction nodes register to compute texture coordinates.
Element storing the current gltexture coordinates.
virtual void push(SoState *state)
Override push() method to set up new instance.
virtual CoordType getType() const
Returns code indicating what has been set in state/element.
virtual void init(SoState *state)
Initializes element.
static void initClass()
Initializes the SoGLTextureCoordinateElement class.
virtual void pop(SoState *state, const SoElement *prevTopElement)
Override pop() method to maintain GL state.
static const SoGLTextureCoordinateElement * getInstance(SoState *state)
Returns the top (current) instance of the element in the state.
static void setTexGen(SoState *state, SoNode *node, SoTexCoordTexgenCB *texGenFunc, void *texGenData=NULL, SoTextureCoordinateFunctionCB *func=NULL, void *funcData=NULL)
TextureCoordinateFunction nodes that use texgen must define and register a callback that makes the ap...
virtual ~SoGLTextureCoordinateElement()
void setElt(SoTexCoordTexgenCB *function, void *userData=NULL)
void send(int index) const
Send routine for EXPLICIT case:
Element storing the current texture coordinates.
CoordType
The (seemingly random) choice of values is for compatibility with Inventor 2.0 binary format files: