![]() |
http://www.sim.no/ http://www.coin3d.org/ |
The SoGLMultiTextureImageElement is used to control the current GL texture for texture units. More...
#include <Inventor/elements/SoGLMultiTextureImageElement.h>
Protected Member Functions | |
virtual | ~SoGLMultiTextureImageElement () |
virtual SbBool | hasTransparency (const int unit) const |
![]() | |
virtual | ~SoMultiTextureImageElement () |
const UnitData & | getUnitData (const int unit) const |
![]() | |
SoElement (void) | |
void | capture (SoState *const state) const |
virtual void | captureThis (SoState *state) const |
void | setTypeId (const SoType typeId) |
void | setStackIndex (const int index) |
SoElement * | getNextInStack (void) const |
SoElement * | getNextFree (void) const |
Additional Inherited Members | |
![]() | |
static SoElement * | getElement (SoState *const state, const int stackIndex) |
static const SoElement * | getConstElement (SoState *const state, const int stackIndex) |
static int | createStackIndex (const SoType id) |
![]() | |
SoType | typeId |
int | stackIndex |
int | depth |
![]() | |
static int | classStackIndex |
static SoTypeList * | stackToType |
The SoGLMultiTextureImageElement is used to control the current GL texture for texture units.
|
protectedvirtual |
The destructor.
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
This static method initializes static data in the SoGLMultiTextureImageElement class.
FIXME: write doc.
Reimplemented from SoMultiTextureImageElement.
This method is called every time a new element is required in one of the stacks. This happens when a writable element is requested, using SoState::getElement() or indirectly SoElement::getElement(), and the depth of the current element is less than the state depth.
Override this method if your element needs to copy data from the previous top of stack. The push() method is called on the new element, and the previous element can be found using SoElement::getNextInStack().
Reimplemented from SoMultiTextureImageElement.
|
virtual |
This method is callled when the state is popped, and the depth of the element is bigger than the current state depth. pop() is called on the new top of stack, and a pointer to the previous top of stack is passed in prevTopElement.
Override this method if you need to copy some state information from the previous top of stack.
Reimplemented from SoElement.
|
static |
Sets the current texture. Id didapply is TRUE, it is assumed that the texture image already is the current GL texture. Do not use this feature unless you know what you're doing.
|
static |
Returns TRUE if any of the images have at least one transparent pixel.
|
protectedvirtual |
Called by containsTransparency(). Returns TRUE if image data has transparency. Default method does a very poor job of detecting this, since it returns TRUE when the number of components are 2 or
Reimplemented from SoMultiTextureImageElement.
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Mon Jan 22 2024 for Coin by Doxygen 1.10.0.