Open Inventor Reference
|
Element storing the current texture coordinate binding. More...
#include <Inventor/elements/SoTextureCoordinateBindingElement.h>
Public Types | |
enum | Binding { PER_VERTEX = 2, PER_VERTEX_INDEXED = 3 } |
The (seemingly random) choice of values is for compatibility with Inventor 2.0 binary format files: More... | |
Public Member Functions | |
virtual void | init (SoState *state) |
Initializes element. | |
virtual void | print (FILE *fp) const |
Prints element (for debugging) | |
Static Public Member Functions | |
static void | set (SoState *state, Binding binding) |
Sets the current texture binding in the state. | |
static void | set (SoState *state, SoNode *, Binding binding) |
static Binding | get (SoState *state) |
Returns current texture binding from the state. | |
static Binding | getDefault () |
Returns the default texture binding. | |
static void | initClass () |
Initializes the SoTextureCoordinateBindingElement class. | |
Protected Member Functions | |
virtual | ~SoTextureCoordinateBindingElement () |
Definition at line 69 of file SoTextureCoordinateBindingElement.h.
PER_VERTEX |
per vertex texture coordinates |
PER_VERTEX_INDEXED |
per vertex, indexed, texture coordinates |
Definition at line 76 of file SoTextureCoordinateBindingElement.h.
virtual SoTextureCoordinateBindingElement::~SoTextureCoordinateBindingElement | ( | ) | [protected, virtual] |
Definition at line 94 of file SoTextureCoordinateBindingElement.h.
References SoInt32Element::get().
static Binding SoTextureCoordinateBindingElement::getDefault | ( | ) | [inline, static] |
Definition at line 98 of file SoTextureCoordinateBindingElement.h.
virtual void SoTextureCoordinateBindingElement::init | ( | SoState * | state | ) | [virtual] |
Reimplemented from SoElement.
static void SoTextureCoordinateBindingElement::initClass | ( | ) | [static] |
Reimplemented from SoInt32Element.
virtual void SoTextureCoordinateBindingElement::print | ( | FILE * | fp | ) | const [virtual] |
Reimplemented from SoInt32Element.
static void SoTextureCoordinateBindingElement::set | ( | SoState * | state, |
SoNode * | , | ||
Binding | binding | ||
) | [inline, static] |
Definition at line 89 of file SoTextureCoordinateBindingElement.h.
static void SoTextureCoordinateBindingElement::set | ( | SoState * | state, |
Binding | binding | ||
) | [inline, static] |
Definition at line 85 of file SoTextureCoordinateBindingElement.h.
References SoInt32Element::set().