Open Inventor Reference
SoGLTextureCoordinateElement Class Reference

Element storing the current gltexture coordinates. More...

#include <Inventor/elements/SoGLTextureCoordinateElement.h>

Inheritance diagram for SoGLTextureCoordinateElement:
SoTextureCoordinateElement SoReplacedElement SoElement

List of all members.

Public Member Functions

virtual void init (SoState *state)
 Initializes element.
virtual CoordType getType () const
 Returns code indicating what has been set in state/element.
void send (int index) const
 Send routine for EXPLICIT case:
virtual void push (SoState *state)
 Override push() method to set up new instance.
virtual void pop (SoState *state, const SoElement *prevTopElement)
 Override pop() method to maintain GL state.

Static Public Member Functions

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 appropriate GL calls.
static const
SoGLTextureCoordinateElement
getInstance (SoState *state)
 Returns the top (current) instance of the element in the state.
static void initClass ()
 Initializes the SoGLTextureCoordinateElement class.

Protected Member Functions

void setElt (SoTexCoordTexgenCB *function, void *userData=NULL)
virtual ~SoGLTextureCoordinateElement ()

Detailed Description

Definition at line 85 of file SoGLTextureCoordinateElement.h.


Constructor & Destructor Documentation

virtual SoGLTextureCoordinateElement::~SoGLTextureCoordinateElement ( ) [protected, virtual]

Member Function Documentation

static const SoGLTextureCoordinateElement* SoGLTextureCoordinateElement::getInstance ( SoState state) [static]

The send routines are called on an instance because it is more efficient than calling a static method that looks up the element in the state for every coordinate.

Reimplemented from SoTextureCoordinateElement.

virtual CoordType SoGLTextureCoordinateElement::getType ( ) const [virtual]

Reimplemented from SoTextureCoordinateElement.

virtual void SoGLTextureCoordinateElement::init ( SoState state) [virtual]

Reimplemented from SoTextureCoordinateElement.

static void SoGLTextureCoordinateElement::initClass ( ) [static]

Reimplemented from SoTextureCoordinateElement.

virtual void SoGLTextureCoordinateElement::pop ( SoState state,
const SoElement prevTopElement 
) [virtual]

Reimplemented from SoElement.

virtual void SoGLTextureCoordinateElement::push ( SoState state) [virtual]

Reimplemented from SoElement.

void SoGLTextureCoordinateElement::send ( int  index) const
void SoGLTextureCoordinateElement::setElt ( SoTexCoordTexgenCB function,
void *  userData = NULL 
) [protected]
static void SoGLTextureCoordinateElement::setTexGen ( SoState state,
SoNode node,
SoTexCoordTexgenCB texGenFunc,
void *  texGenData = NULL,
SoTextureCoordinateFunctionCB func = NULL,
void *  funcData = NULL 
) [static]

TextureCoordinateFunction nodes that don't use texgen must register a NULL callback to turn off texgen. The texGen arguments point to a function that will issue GL TexGen calls; the func arguments must point to a static function that will return the results of the texgen function (needed because some nodes render by using their generatePrimitives method).


The documentation for this class was generated from the following file: