The sotexturecoordinatebundle class simplifies texture coordinate handling. it is unlikely that application programmers should need to know how to use this class, as it is mostly intended for internal use.
#include <include/Inventor/bundles/SoTextureCoordinateBundle.h>
Inherits SoBundle.
SoTextureCoordinateBundle (SoAction *const action, const SbBool forRendering, const SbBool setUpDefault=TRUE)
~SoTextureCoordinateBundle ()
SbBool needCoordinates (void) const
SbBool isFunction (void) const
const SbVec4f & get (const int index)
const SbVec4f & get (const SbVec3f &point, const SbVec3f &normal)
void send (const int index) const
void send (const int index, const SbVec3f &point, const SbVec3f &normal) const
SbBool needIndices (void) const
The SoTextureCoordinateBundle class simplifies texture coordinate handling.
It is unlikely that application programmers should need to know how to use this class, as it is mostly intended for internal use.
Constructor with action being the action applied to the node. The forRendering parameter must be TRUE if the bundle is to be used for sending texture coordinates to GL during rendering. The setUpDefault must be TRUE if default texture coordinates should be generated.
Destructor.
Returns TRUE if texture coordinates is needed during rendering.
Returns TRUE if a texture coordinate function should be used.
Returns the texture coordinates at index index. Should only be used if SoTextureCoordinateBundle::isFunction() is FALSE.
Returns the texture coordinates based on point and normal. Should only be used if SoTextureCoordinateBundle::isFunction() is TRUE.
Send texture coordinates to GL. Should only be used if SoTextureCoordinateBundle::isFunction() is FALSE.
Convenience function that will make it transparent to the rendering code if ordinary texture coordinates or function texture coordinates are used.
Returns TRUE if isFunction() is TRUE, but the texture coordinate indices are needed either by bump mapping or by one of the other texture units.
Since:
Coin 2.2
Generated automatically by Doxygen for Coin from the source code.