Stores the current texture image. More...
#include <Inventor/elements/SoTextureImageElement.h>
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static const void * | get (SoState *state, SbVec2i32 &size, int &numComponents, SoSFImage::DataType &dataType, GLint &GLInternalFormat, int &wrapS, int &wrapT, int &model, SbColor &blendColor, int unit=0) |
static void | get (SoState *state, int &_minFilter, int &_magFilter, float &_maxAnisotropy, int unit=0) |
static void | set (SoState *state, SoNode *node, const SbVec2i32 &subSize, int xoffset, int yoffset, const void *buffer, int texname) |
static SbBool | containsTransparency (SoState *state, int unit=0) |
static const void * | getDefault (SbVec2i32 &s, int &nc, SoSFImage::DataType &dataType, GLint &GLInternalFormat) |
Stores the current texture image.
This element stores the current texture image.
SoTexture2, SoExtTexture2, SoIndexedTexture2, SoTextureCubeMap
static SbBool SoTextureImageElement::containsTransparency | ( | SoState * | state, | |
int | unit = 0 | |||
) | [static] |
Returns TRUE if the texture contains transparency info.
static void SoTextureImageElement::get | ( | SoState * | state, | |
int & | _minFilter, | |||
int & | _magFilter, | |||
float & | _maxAnisotropy, | |||
int | unit = 0 | |||
) | [static] |
Gets the current image minFilter, magFilter and maxAnisotropy.
static const void* SoTextureImageElement::get | ( | SoState * | state, | |
SbVec2i32 & | size, | |||
int & | numComponents, | |||
SoSFImage::DataType & | dataType, | |||
GLint & | GLInternalFormat, | |||
int & | wrapS, | |||
int & | wrapT, | |||
int & | model, | |||
SbColor & | blendColor, | |||
int | unit = 0 | |||
) | [static] |
Gets the current image, wrap, and model.
static int SoTextureImageElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoTextureImageElementBase.
static SoType SoTextureImageElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoTextureImageElementBase.
static const void* SoTextureImageElement::getDefault | ( | SbVec2i32 & | s, | |
int & | nc, | |||
SoSFImage::DataType & | dataType, | |||
GLint & | GLInternalFormat | |||
) | [static] |
Returns the default texture image.
static void SoTextureImageElement::set | ( | SoState * | state, | |
SoNode * | node, | |||
const SbVec2i32 & | subSize, | |||
int | xoffset, | |||
int | yoffset, | |||
const void * | buffer, | |||
int | texname | |||
) | [static] |
Pass texname = -1 to deactivate subtexturing.
Subtexturing not active by default. In any case, the regular set method must be called.