Stores the current 3D texture image in GL. More...
#include <Inventor/elements/SoGLTextureImage3Element.h>
Public Member Functions | |
virtual void | push (SoState *state) |
virtual void | pop (SoState *state, const SoElement *prevTopElement) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static SoGLDisplayList * | set (SoState *state, SoNode *node, const SbVec3s &s, int nc, const unsigned char *bytes, SoBufferObject *bufferObject, GLint GLInternalFormat, float texQuality, int wrapS, int wrapT, int wrapR, int model, const SbColor &blendColor, float _maxAnisotropy, SbBool _enableBorder, const SbVec4f &_borderColor, SoGLDisplayList *list, SbBool enableCompressedTexture) |
static void | set (SoState *state, SoNode *node, const SbVec3s &subSize, int xoffset, int yoffset, int zoffset, const unsigned char *bytes, int texname) |
static void | setFilter (SoState *state, SoNode *node, int _minFilter, int _magFilter) |
Friends | |
class | SoGLTextureImageElementImpl |
This element stores the current 3D texture image in GL. Overrides the virtual methods on SoTextureImage3Element to send the 3D image to GL when necessary.
NOTE: This class does not exist in Open Inventor 10.0 and later.Note that this class relies on SoTextureImage3Element to store the image in the instance.
static int SoGLTextureImage3Element::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoTextureImage3Element.
static SoType SoGLTextureImage3Element::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoTextureImage3Element.
virtual void SoGLTextureImage3Element::pop | ( | SoState * | state, | |
const SoElement * | prevTopElement | |||
) | [virtual] |
Override pop() method so side effects can occur in GL.
virtual void SoGLTextureImage3Element::push | ( | SoState * | state | ) | [virtual] |
Overrides push() method to copy values from next instance in the stack.
Reimplemented from SoTextureImageElementBase.
static void SoGLTextureImage3Element::set | ( | SoState * | state, | |
SoNode * | node, | |||
const SbVec3s & | subSize, | |||
int | xoffset, | |||
int | yoffset, | |||
int | zoffset, | |||
const unsigned char * | bytes, | |||
int | texname | |||
) | [static] |
Pass texname = -1 to deactivate subtexturing.
subtexturing not active by default. In any case, the regular set method must be called.
Reimplemented from SoTextureImage3Element.
static SoGLDisplayList* SoGLTextureImage3Element::set | ( | SoState * | state, | |
SoNode * | node, | |||
const SbVec3s & | s, | |||
int | nc, | |||
const unsigned char * | bytes, | |||
SoBufferObject * | bufferObject, | |||
GLint | GLInternalFormat, | |||
float | texQuality, | |||
int | wrapS, | |||
int | wrapT, | |||
int | wrapR, | |||
int | model, | |||
const SbColor & | blendColor, | |||
float | _maxAnisotropy, | |||
SbBool | _enableBorder, | |||
const SbVec4f & | _borderColor, | |||
SoGLDisplayList * | list, | |||
SbBool | enableCompressedTexture | |||
) | [static] |
Sets the current image, wrap modes and model.
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.
static void SoGLTextureImage3Element::setFilter | ( | SoState * | state, | |
SoNode * | node, | |||
int | _minFilter, | |||
int | _magFilter | |||
) | [static] |
friend class SoGLTextureImageElementImpl [friend] |
Reimplemented from SoTextureImageElementBase.