Coin
4.0.3
Coin3D core library
|
The SoTextureCoordinateCache class is used to cache generated texture coordinates. More...
#include <Inventor/caches/SoTextureCoordinateCache.h>
Public Member Functions | |
SoTextureCoordinateCache (SoState *const state) | |
virtual | ~SoTextureCoordinateCache () |
void | generate (const SbBox3f &bbox, const SbVec3f *vertices, const int numvertices) |
const SbVec2f * | get (void) const |
int | getNum (void) const |
Public Member Functions inherited from SoCache | |
SoCache (SoState *const state) | |
virtual void | addCacheDependency (const SoState *state, SoCache *cache) |
void | addElement (const SoElement *const elem) |
const SoElement * | getInvalidElement (const SoState *const state) const |
void | invalidate (void) |
virtual SbBool | isValid (const SoState *state) const |
void | ref (void) |
void | unref (SoState *state=NULL) |
Additional Inherited Members | |
Protected Member Functions inherited from SoCache | |
virtual | ~SoCache () |
virtual void | destroy (SoState *state) |
The SoTextureCoordinateCache class is used to cache generated texture coordinates.
|
virtual |
Destructor.
void SoTextureCoordinateCache::generate | ( | const SbBox3f & | bbox, |
const SbVec3f * | vertices, | ||
const int | numvertices ) |
Generates texture coordinates based on the bounding box of the geometry. This is usually called default texture coordinates in OIV.
Returns the generated texture coordinates.
int SoTextureCoordinateCache::getNum | ( | void | ) | const |
Returns the number of generated texture coordinates.