Open Inventor Reference
|
Element storing the current texture image.
#include <Inventor/elements/SoTextureImageElement.h>
Public Member Functions | |
virtual void | init (SoState *state) |
Initializes element. | |
virtual void | print (FILE *fp) const |
Print info about image for debugging. | |
Static Public Member Functions | |
static void | set (SoState *state, SoNode *node, const SbVec2s &size, int numComponents, const unsigned char *bytes, int wrapS, int wrapT, int model, const SbColor &blendColor) |
sets the current image, wrap, and model: | |
static const unsigned char * | get (SoState *state, SbVec2s &size, int &numComponents, int &wrapS, int &wrapT, int &model, SbColor &blendColor) |
static SbBool | containsTransparency (SoState *state) |
Returns TRUE if the texture contains transparency info. | |
static const unsigned char * | getDefault (SbVec2s &s, int &nc) |
Returns the default texture image. | |
static void | initClass () |
Initializes the class. | |
Protected Member Functions | |
virtual void | setElt (const SbVec2s &s, int nc, const unsigned char *bytes, int wrapS, int wrapT, int model, const SbColor &blendColor) |
virtual | ~SoTextureImageElement () |
Protected Attributes | |
SbVec2s | size |
int | numComponents |
const unsigned char * | bytes |
int | wrapS |
int | wrapT |
int | model |
SbColor | blendColor |
Definition at line 70 of file SoTextureImageElement.h.
virtual SoTextureImageElement::~SoTextureImageElement | ( | ) | [protected, virtual] |
static const unsigned char* SoTextureImageElement::get | ( | SoState * | state, |
SbVec2s & | size, | ||
int & | numComponents, | ||
int & | wrapS, | ||
int & | wrapT, | ||
int & | model, | ||
SbColor & | blendColor | ||
) | [static] |
static const unsigned char* SoTextureImageElement::getDefault | ( | SbVec2s & | s, |
int & | nc | ||
) | [static] |
virtual void SoTextureImageElement::init | ( | SoState * | state | ) | [virtual] |
Reimplemented from SoReplacedElement.
Reimplemented in SoGLTextureImageElement.
static void SoTextureImageElement::initClass | ( | ) | [static] |
Reimplemented from SoReplacedElement.
Reimplemented in SoGLTextureImageElement.
virtual void SoTextureImageElement::print | ( | FILE * | fp | ) | const [virtual] |
Reimplemented from SoReplacedElement.
static void SoTextureImageElement::set | ( | SoState * | state, |
SoNode * | node, | ||
const SbVec2s & | size, | ||
int | numComponents, | ||
const unsigned char * | bytes, | ||
int | wrapS, | ||
int | wrapT, | ||
int | model, | ||
const SbColor & | blendColor | ||
) | [static] |
virtual void SoTextureImageElement::setElt | ( | const SbVec2s & | s, |
int | nc, | ||
const unsigned char * | bytes, | ||
int | wrapS, | ||
int | wrapT, | ||
int | model, | ||
const SbColor & | blendColor | ||
) | [protected, virtual] |
Reimplemented in SoGLTextureImageElement.
SbColor SoTextureImageElement::blendColor [protected] |
Definition at line 113 of file SoTextureImageElement.h.
const unsigned char* SoTextureImageElement::bytes [protected] |
Definition at line 111 of file SoTextureImageElement.h.
int SoTextureImageElement::model [protected] |
Definition at line 112 of file SoTextureImageElement.h.
int SoTextureImageElement::numComponents [protected] |
Definition at line 110 of file SoTextureImageElement.h.
SbVec2s SoTextureImageElement::size [protected] |
Definition at line 109 of file SoTextureImageElement.h.
int SoTextureImageElement::wrapS [protected] |
Definition at line 112 of file SoTextureImageElement.h.
int SoTextureImageElement::wrapT [protected] |
Definition at line 112 of file SoTextureImageElement.h.