Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
SoVBOCache Class Reference

The SoVBOCache is used to organize pointers to SoVBO and SoVertexArrayIndexer instances. More...

#include <caches/SoVBOCache.h>

Inheritance diagram for SoVBOCache:
SoCache

Public Member Functions

 SoVBOCache (SoState *state)
 
virtual ~SoVBOCache ()
 
SoVertexArrayIndexergetVertexArrayIndexer (const SbBool createifnull=TRUE)
 
SoVBOgetCoordVBO (const SbBool createifnull=TRUE)
 
SoVBOgetNormalVBO (const SbBool createifnull=TRUE)
 
SoVBOgetColorVBO (const SbBool createifnull=TRUE)
 
SoVBOgetTexCoordVBO (const int unit, const SbBool createifnull=TRUE)
 
- 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 SoElementgetInvalidElement (const SoState *const state) const
 
void invalidate (void)
 

Additional Inherited Members

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

Detailed Description

The SoVBOCache is used to organize pointers to SoVBO and SoVertexArrayIndexer instances.

Constructor & Destructor Documentation

SoVBOCache::SoVBOCache ( SoState state)

Constructor.

SoVBOCache::~SoVBOCache ( )
virtual

Destructor.

Member Function Documentation

SoVertexArrayIndexer * SoVBOCache::getVertexArrayIndexer ( const SbBool  createifnull = TRUE)

Returns the vertex array indexer. If createifnull is TRUE, a indexer will be created if it doesn't exist.

SoVBO * SoVBOCache::getCoordVBO ( const SbBool  createifnull = TRUE)

Returns the coordinate VBO instance. If createifnull is TRUE, a VBO instance will be created if it doesn't exist.

SoVBO * SoVBOCache::getNormalVBO ( const SbBool  createifnull = TRUE)

Returns the normal vertex VBO instance. If createifnull is TRUE, a VBO instance will be created if it doesn't exist.

SoVBO * SoVBOCache::getColorVBO ( const SbBool  createifnull = TRUE)

Returns the color VBO instance. If createifnull is TRUE, a VBO instance will be created if it doesn't exist.

SoVBO * SoVBOCache::getTexCoordVBO ( const int  unit,
const SbBool  createifnull = TRUE 
)

Returns the texture coordinate VBO instance. If createifnull is TRUE, a VBO instance will be created if it doesn't exist.


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