Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoTextureImage3Element Class Reference

VSG extension Stores the current 3D texture image. More...

#include <Inventor/elements/SoTextureImage3Element.h>

+ Inheritance diagram for SoTextureImage3Element:

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 unsigned char * get (SoState *state, SbVec3s &size, int &numComponents, int &wrapS, int &wrapT, int &wrapR, int &model, SbColor &blendColor, int unit=0)
 Gets the current image, wrap, and model.
 
static void set (SoState *state, SoNode *node, const SbVec3s &subSize, int xoffset, int yoffset, int zoffset, const unsigned char *bytes, int texname)
 Pass texname = -1 to deactivate subtexturing.
 
static const unsigned char * getDefault (SbVec3s &s, int &nc)
 Returns the default texture image.
 
static SbBool containsTransparency (SoState *state, int unit=0)
 Returns TRUE if the texture contains transparency info.
 
- 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

VSG extension Stores the current 3D texture image.

This element stores the current 3D texture image.

SEE ALSO

SoTexture3

Definition at line 46 of file SoTextureImage3Element.h.

Member Function Documentation

◆ containsTransparency()

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

Returns TRUE if the texture contains transparency info.

◆ get()

static const unsigned char * SoTextureImage3Element::get ( SoState state,
SbVec3s size,
int &  numComponents,
int &  wrapS,
int &  wrapT,
int &  wrapR,
int &  model,
SbColor blendColor,
int  unit = 0 
)
static

Gets the current image, wrap, and model.

◆ getClassStackIndex()

static int SoTextureImage3Element::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoTextureImage3Element::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ getDefault()

static const unsigned char * SoTextureImage3Element::getDefault ( SbVec3s s,
int &  nc 
)
static

Returns the default texture image.

◆ set()

static void SoTextureImage3Element::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.


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