Implements creation and caching of vertex buffers for terrain chunks.
More...
#include <buffercache.hpp>
Implements creation and caching of vertex buffers for terrain chunks.
Terrain::BufferCache::BufferCache |
( |
unsigned int |
numVerts | ) |
|
|
inline |
osg::ref_ptr< osg::DrawElements > Terrain::BufferCache::getIndexBuffer |
( |
unsigned int |
flags | ) |
|
- Parameters
-
flags | first 4*4 bits are LOD deltas on each edge, respectively (4 bits each) next 4 bits are LOD level of the index buffer (LOD 0 = don't omit any vertices) |
- Note
- Thread safe.
osg::ref_ptr< osg::Vec2Array > Terrain::BufferCache::getUVBuffer |
( |
| ) |
|
std::map<int, osg::ref_ptr<osg::DrawElements> > Terrain::BufferCache::mIndexBufferMap |
|
private |
OpenThreads::Mutex Terrain::BufferCache::mIndexBufferMutex |
|
private |
unsigned int Terrain::BufferCache::mNumVerts |
|
private |
std::map<int, osg::ref_ptr<osg::Vec2Array> > Terrain::BufferCache::mUvBufferMap |
|
private |
OpenThreads::Mutex Terrain::BufferCache::mUvBufferMutex |
|
private |
The documentation for this class was generated from the following files: