Stores the current texture image in GL. More...
#include <Inventor/elements/SoGLTextureImageElement.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 SbVec2i32 &s, int nc, const void *_buffer, SoBufferObject *_bufferObject, SoSFImage::DataType _dataType, GLint _GLInternalFormat, SoRenderToTextureProperty *renderToTexProp, float texQuality, int wrapS, int wrapT, int wrapR, int model, const SbColor &blendColor, float _maxAnisotropy, SbBool _enableBorder, const SbVec4f &_borderColor, SbBool isCompressed, int numCompressedMipmaps, SoGLDisplayList *list, int hasTransparency=-1, SbBool enableCompressedTexture=FALSE, int CurrentImg=-1) |
static void | set (SoState *state, SoNode *node, const SbVec2i32 &subSize, int xoffset, int yoffset, const void *buffer, SoSFImage::DataType dataType, int texname) |
static void | setFilter (SoState *state, SoNode *node, int _minFilter, int _magFilter) |
static void | setIsRenderingShadows (SoState *state, SoNode *node, SbBool isRenderingShadows) |
Deprecated | |
| |
static SoDEPRECATED SoGLDisplayList * | set (SoState *state, SoNode *node, const SbVec2s &s, int nc, const void *_buffer, SoBufferObject *_bufferObject, SoSFImage::DataType _dataType, GLint _GLInternalFormat, SoRenderToTextureProperty *renderToTexProp, float texQuality, int wrapS, int wrapT, int wrapR, int model, const SbColor &blendColor, float _maxAnisotropy, SbBool _enableBorder, const SbVec4f &_borderColor, SbBool isCompressed, int numCompressedMipmaps, SoGLDisplayList *list, int hasTransparency=-1, SbBool enableCompressedTexture=FALSE, int CurrentImg=-1) |
static SoDEPRECATED void | set (SoState *state, SoNode *node, const SbVec2s &subSize, int xoffset, int yoffset, const void *buffer, SoSFImage::DataType dataType, int texname) |
Stores the current texture image in GL.
This element stores the current texture image in GL. Overrides the virtual methods on SoTextureImageElement to send the image to GL when necessary.
NOTE: This class does not exist in Open Inventor 10.0 and later.Note that this class relies on SoTextureImageElement to store the image in the instance.
static int SoGLTextureImageElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoTextureImageElement.
static SoType SoGLTextureImageElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoTextureImageElement.
virtual void SoGLTextureImageElement::pop | ( | SoState * | state, | |
const SoElement * | prevTopElement | |||
) | [virtual] |
Override pop() method so side effects can occur in GL.
virtual void SoGLTextureImageElement::push | ( | SoState * | state | ) | [virtual] |
Override push() method to copy values from next instance in the stack.
Reimplemented from SoTextureImageElementBase.
static SoDEPRECATED void SoGLTextureImageElement::set | ( | SoState * | state, | |
SoNode * | node, | |||
const SbVec2s & | subSize, | |||
int | xoffset, | |||
int | yoffset, | |||
const void * | buffer, | |||
SoSFImage::DataType | dataType, | |||
int | texname | |||
) | [static] |
Pass texname = -1 to deactivate subtexturing.
subtexturing not active by default. In any case, the regular set method must be called.
static SoDEPRECATED SoGLDisplayList* SoGLTextureImageElement::set | ( | SoState * | state, | |
SoNode * | node, | |||
const SbVec2s & | s, | |||
int | nc, | |||
const void * | _buffer, | |||
SoBufferObject * | _bufferObject, | |||
SoSFImage::DataType | _dataType, | |||
GLint | _GLInternalFormat, | |||
SoRenderToTextureProperty * | renderToTexProp, | |||
float | texQuality, | |||
int | wrapS, | |||
int | wrapT, | |||
int | wrapR, | |||
int | model, | |||
const SbColor & | blendColor, | |||
float | _maxAnisotropy, | |||
SbBool | _enableBorder, | |||
const SbVec4f & | _borderColor, | |||
SbBool | isCompressed, | |||
int | numCompressedMipmaps, | |||
SoGLDisplayList * | list, | |||
int | hasTransparency = -1 , |
|||
SbBool | enableCompressedTexture = FALSE , |
|||
int | CurrentImg = -1 | |||
) | [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 SoGLTextureImageElement::set | ( | SoState * | state, | |
SoNode * | node, | |||
const SbVec2i32 & | subSize, | |||
int | xoffset, | |||
int | yoffset, | |||
const void * | buffer, | |||
SoSFImage::DataType | dataType, | |||
int | texname | |||
) | [static] |
Pass texname = -1 to deactivate subtexturing.
subtexturing not active by default. In any case, the regular set method must be called.
static SoGLDisplayList* SoGLTextureImageElement::set | ( | SoState * | state, | |
SoNode * | node, | |||
const SbVec2i32 & | s, | |||
int | nc, | |||
const void * | _buffer, | |||
SoBufferObject * | _bufferObject, | |||
SoSFImage::DataType | _dataType, | |||
GLint | _GLInternalFormat, | |||
SoRenderToTextureProperty * | renderToTexProp, | |||
float | texQuality, | |||
int | wrapS, | |||
int | wrapT, | |||
int | wrapR, | |||
int | model, | |||
const SbColor & | blendColor, | |||
float | _maxAnisotropy, | |||
SbBool | _enableBorder, | |||
const SbVec4f & | _borderColor, | |||
SbBool | isCompressed, | |||
int | numCompressedMipmaps, | |||
SoGLDisplayList * | list, | |||
int | hasTransparency = -1 , |
|||
SbBool | enableCompressedTexture = FALSE , |
|||
int | CurrentImg = -1 | |||
) | [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 SoGLTextureImageElement::setFilter | ( | SoState * | state, | |
SoNode * | node, | |||
int | _minFilter, | |||
int | _magFilter | |||
) | [static] |
Sets the texture filter.
static void SoGLTextureImageElement::setIsRenderingShadows | ( | SoState * | state, | |
SoNode * | node, | |||
SbBool | isRenderingShadows | |||
) | [static] |
Sets the shadows rendering state.