SoGLTextureImageElement Class Reference
[Elements]

Stores the current texture image in GL. More...

#include <Inventor/elements/SoGLTextureImageElement.h>

Inheritance diagram for SoGLTextureImageElement:
SoTextureImageElement SoTextureImageElementBase SoReplacedTextureElement SoElement SoTypedObject

List of all members.

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 SoGLDisplayListset (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)

Detailed Description

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.

SEE ALSO

SoTextureImageElement

Deprecated:

Deprecated since Open Inventor 9620
SoGLTextureImageElement is no longer supported, use equivalent SoTextureImageElement.

Member Function Documentation

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.

Deprecated:

Deprecated since Open Inventor 9400
Specify the size with a SbVec2i32 instead.
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.

Deprecated:

Deprecated since Open Inventor 9400
Specify the size with a SbVec2i32 instead.
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.


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

Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/