Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SoTextureImageElement Class Reference

Stores the current texture image. More...

#include <Inventor/elements/SoTextureImageElement.h>

+ Inheritance diagram for SoTextureImageElement:

Static Public Member Functions

static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
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)
 Gets the current image, wrap, and model.
 
static void get (SoState *state, int &_minFilter, int &_magFilter, float &_maxAnisotropy, int unit=0)
 Gets the current image minFilter, magFilter and maxAnisotropy.
 
static void set (SoState *state, SoNode *node, const SbVec2i32 &subSize, int xoffset, int yoffset, const void *buffer, int texname)
 Pass texname = -1 to deactivate subtexturing.
 
static SbBool containsTransparency (SoState *state, int unit=0)
 Returns TRUE if the texture contains transparency info.
 
static const void * getDefault (SbVec2i32 &s, int &nc, SoSFImage::DataType &dataType, GLint &GLInternalFormat)
 Returns the default texture image.
 
- Static Public Member Functions inherited from SoTextureImageElementBase
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
- Static Public Member Functions inherited from SoReplacedTextureElement
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
- Static Public Member Functions inherited from SoElement
static SoType getClassTypeId ()
 Returns type identifier for SoElement class.
 
- Static Public Member Functions inherited from SoTypedObject
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 

Additional Inherited Members

- Public Types inherited from SoTextureImageElementBase
enum  Target {
  TEXTURE2D = GL_TEXTURE_2D ,
  TEXTURECUBEMAP = GL_TEXTURE_CUBE_MAP
}
 Target. More...
 
- Public Member Functions inherited from SoTextureImageElementBase
virtual void print (FILE *fp) const
 Print info about image for debugging.
 
virtual void push (SoState *state)
 Overrides push() method to copy values from next instance in the stack.
 
- Public Member Functions inherited from SoElement
virtual void pop (SoState *state, const SoElement *prevTopElement)
 Pops element.
 
virtual SoType getTypeId () const
 Returns type identifier for element instance.
 
- Public Member Functions inherited from SoTypedObject
SbBool isOfType (const SoType &type) const
 Returns TRUE if this object is of the type specified in type or is derived from that type.
 
template<typename TypedObjectClass >
SbBool isOfType () const
 Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class.
 

Detailed Description

Stores the current texture image.

This element stores the current texture image.

SEE ALSO

SoTexture2, SoExtTexture2, SoIndexedTexture2, SoTextureCubeMap

Definition at line 68 of file SoTextureImageElement.h.

Member Function Documentation

◆ containsTransparency()

static SbBool SoTextureImageElement::containsTransparency ( SoState state,
int  unit = 0 
)
static

Returns TRUE if the texture contains transparency info.

◆ get() [1/2]

static void SoTextureImageElement::get ( SoState state,
int &  _minFilter,
int &  _magFilter,
float &  _maxAnisotropy,
int  unit = 0 
)
static

Gets the current image minFilter, magFilter and maxAnisotropy.

◆ get() [2/2]

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.

◆ getClassStackIndex()

static int SoTextureImageElement::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoTextureImageElement::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ getDefault()

static const void * SoTextureImageElement::getDefault ( SbVec2i32 s,
int &  nc,
SoSFImage::DataType dataType,
GLint GLInternalFormat 
)
static

Returns the default texture image.

◆ set()

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.


The documentation for this class was generated from the following file: