Open Inventor Reference
|
Element that stores the current texture image in GL. More...
#include <Inventor/elements/SoGLTextureImageElement.h>
Public Member Functions | |
virtual void | init (SoState *state) |
Initializes element. | |
virtual void | pop (SoState *state, const SoElement *prevTopElement) |
Override pop() method so side effects can occur in GL. | |
Static Public Member Functions | |
static SoGLDisplayList * | set (SoState *state, SoNode *node, const SbVec2s &s, int nc, const unsigned char *bytes, float texQuality, int wrapS, int wrapT, int model, const SbColor &blendColor, SoGLDisplayList *list) |
Sets the current image, wrap modes and model. | |
static void | initClass () |
Initializes the SoGLTextureImageElement class. | |
Protected Member Functions | |
virtual void | setElt (const SbVec2s &s, int nc, const unsigned char *bytes, int wrapS, int wrapT, int model, const SbColor &blendColor) |
Catch setElt; if this setElt is called, it is an error... | |
virtual | ~SoGLTextureImageElement () |
Overrides the virtual methods on SoTextureImageElement to send the image to GL when necessary.
Note that this class relies on SoTextureImageElement to store the image in the instance.
Definition at line 76 of file SoGLTextureImageElement.h.
virtual SoGLTextureImageElement::~SoGLTextureImageElement | ( | ) | [protected, virtual] |
virtual void SoGLTextureImageElement::init | ( | SoState * | state | ) | [virtual] |
Reimplemented from SoTextureImageElement.
static void SoGLTextureImageElement::initClass | ( | ) | [static] |
Reimplemented from SoTextureImageElement.
virtual void SoGLTextureImageElement::pop | ( | SoState * | state, |
const SoElement * | prevTopElement | ||
) | [virtual] |
Reimplemented from SoElement.
static SoGLDisplayList* SoGLTextureImageElement::set | ( | SoState * | state, |
SoNode * | node, | ||
const SbVec2s & | s, | ||
int | nc, | ||
const unsigned char * | bytes, | ||
float | texQuality, | ||
int | wrapS, | ||
int | wrapT, | ||
int | model, | ||
const SbColor & | blendColor, | ||
SoGLDisplayList * | list | ||
) | [static] |
This will try to build or use a GL display list, if it can; the display list ID is returned (-1 if there is none), and should be saved and passed in the next time the element is set. The node calling this routine is responsible for calling glDeleteLists to free up the display list at the right time.
virtual void SoGLTextureImageElement::setElt | ( | const SbVec2s & | s, |
int | nc, | ||
const unsigned char * | bytes, | ||
int | wrapS, | ||
int | wrapT, | ||
int | model, | ||
const SbColor & | blendColor | ||
) | [protected, virtual] |
Reimplemented from SoTextureImageElement.