![]() |
Coin3D is Free Software, published under the BSD 3-clause license. |
https://bitbucket.org/Coin3D/ http://www.kongsberg.com/kogt/ |
The SoVBOCache is used to organize pointers to SoVBO and SoVertexArrayIndexer instances. More...
#include <caches/SoVBOCache.h>
Public Member Functions | |
SoVBOCache (SoState *state) | |
virtual | ~SoVBOCache () |
SoVertexArrayIndexer * | getVertexArrayIndexer (const SbBool createifnull=TRUE) |
SoVBO * | getCoordVBO (const SbBool createifnull=TRUE) |
SoVBO * | getNormalVBO (const SbBool createifnull=TRUE) |
SoVBO * | getColorVBO (const SbBool createifnull=TRUE) |
SoVBO * | getTexCoordVBO (const int unit, const SbBool createifnull=TRUE) |
![]() | |
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) |
Additional Inherited Members | |
![]() | |
virtual void | destroy (SoState *state) |
virtual | ~SoCache () |
The SoVBOCache is used to organize pointers to SoVBO and SoVertexArrayIndexer instances.
SoVBOCache::SoVBOCache | ( | SoState * | state | ) |
Constructor.
|
virtual |
Destructor.
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.