1 #ifndef COMPONENTS_TERRAIN_BUFFERCACHE_H
2 #define COMPONENTS_TERRAIN_BUFFERCACHE_H
6 #include <osg/PrimitiveSet>
22 osg::ref_ptr<osg::DrawElements>
getIndexBuffer (
unsigned int flags);
Implements creation and caching of vertex buffers for terrain chunks.
Definition: buffercache.hpp:14
std::map< int, osg::ref_ptr< osg::Vec2Array > > mUvBufferMap
Definition: buffercache.hpp:35
OpenThreads::Mutex mIndexBufferMutex
Definition: buffercache.hpp:33
unsigned int mNumVerts
Definition: buffercache.hpp:38
osg::ref_ptr< osg::Vec2Array > getUVBuffer()
Definition: buffercache.cpp:181
osg::ref_ptr< osg::DrawElements > getIndexBuffer(unsigned int flags)
Definition: buffercache.cpp:210
OpenThreads::Mutex mUvBufferMutex
Definition: buffercache.hpp:36
std::map< int, osg::ref_ptr< osg::DrawElements > > mIndexBufferMap
Definition: buffercache.hpp:32
BufferCache(unsigned int numVerts)
Definition: buffercache.hpp:17