SoTextureCoordinateCache(3) Coin SoTextureCoordinateCache(3)

SoTextureCoordinateCache - The SoTextureCoordinateCache class is used to cache generated texture coordinates.

#include <Inventor/caches/SoTextureCoordinateCache.h>

Inherits SoCache.


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)
void ref (void)
void unref (SoState *state=NULL)
void addElement (const SoElement *const elem)
virtual void addCacheDependency (const SoState *state, SoCache *cache)
virtual SbBool isValid (const SoState *state) const
const SoElement * getInvalidElement (const SoState *const state) const
void invalidate (void)

Protected Member Functions inherited from SoCache
virtual void destroy (SoState *state)
virtual ~SoCache ()

The SoTextureCoordinateCache class is used to cache generated texture coordinates.

Constructor.

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.

const SbVec2f * SoTextureCoordinateCache::get (void) const

Returns the generated texture coordinates.

Returns the number of generated texture coordinates.

Generated automatically by Doxygen for Coin from the source code.

Tue Dec 26 2023 17:59:22 Version 4.0.2