16 #include <osg/ref_ptr>
17 #include <osg/PrimitiveSet>
18 #include <boost/unordered_map.hpp>
52 void releaseResources();
55 void ts_clearInstancingCache();
58 osg::Drawable* getShapeInstance(ShapeType,
unsigned int faceCount);
64 osg::DrawElementsUInt* getCircularIndexBuffer(
unsigned int vertexCount,
65 unsigned int firstIndex,
unsigned int indexStep);
70 virtual osg::Drawable* createShapeInstance(ShapeType,
unsigned int faceCount);
88 boost::hash_combine(seed, p.
type);
95 typedef boost::unordered_map<ShapeKey, osg::ref_ptr<osg::Drawable>,
108 return count == other.
count && initial == other.
initial &&
118 std::size_t seed = 0;
119 boost::hash_combine(seed, p.
count);
120 boost::hash_combine(seed, p.
initial);
121 boost::hash_combine(seed, p.
step);
126 typedef boost::unordered_map<IndexBufferKey, osg::ref_ptr<osg::DrawElementsUInt>,
std::size_t operator()(IndexBufferKey const &p) const
Definition: DtOsgShapeCache.h:116
unsigned int step
Definition: DtOsgShapeCache.h:104
Definition: DtOsgShapeCache.h:100
Virtual base class.
Definition: DtVirtualBaseClass.h:22
ShapeType type
Definition: DtOsgShapeCache.h:74
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
unsigned int initial
Definition: DtOsgShapeCache.h:103
std::size_t operator()(ShapeKey const &p) const
Definition: DtOsgShapeCache.h:85
Definition: DtOsgShapeCache.h:114
boost::unordered_map< IndexBufferKey, osg::ref_ptr< osg::DrawElementsUInt >, IndexBufferKey_hash > IndexBufferMap
Definition: DtOsgShapeCache.h:127
Definition: DtOsgShapeCache.h:83
Contains makVrv::DtVirtualBaseClass class.
Definition: DtOsgShapeCache.h:72
unsigned int faceCount
Definition: DtOsgShapeCache.h:75
boost::unordered_map< ShapeKey, osg::ref_ptr< osg::Drawable >, ShapeKey_hash > ShapeMap
Definition: DtOsgShapeCache.h:96
ShapeMap myShapeMap
Definition: DtOsgShapeCache.h:97
A cache responsible for storing osg shape geodes.
Definition: DtOsgShapeCache.h:32
unsigned int count
Definition: DtOsgShapeCache.h:102
bool operator==(const DtTextureAtlasIndexParser::StringOrFloatAttrib &lhs, const DtTextureAtlasIndexParser::StringOrFloatAttrib &rhs)
needed for search comparison code
Definition: DtTextureAtlasIndexParser.h:153
Definition: DtOsgShapeCache.h:47
Contains DLL export macros.
IndexBufferMap myIndexBufferMap
Definition: DtOsgShapeCache.h:128
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
ShapeType
Definition: DtOsgShapeCache.h:45
Definition: DtOsgShapeCache.h:48