13 #include <osg/ref_ptr>
14 #include <osg/PrimitiveSet>
15 #include <boost/unordered_map.hpp>
49 void releaseResources();
52 void ts_clearInstancingCache();
55 osg::Drawable* getShapeInstance(ShapeType,
unsigned int faceCount);
61 osg::DrawElementsUInt* getCircularIndexBuffer(
unsigned int vertexCount,
62 unsigned int firstIndex,
unsigned int indexStep);
67 virtual osg::Drawable* createShapeInstance(ShapeType,
unsigned int faceCount);
85 boost::hash_combine(seed, p.
type);
92 typedef boost::unordered_map<ShapeKey, osg::ref_ptr<osg::Drawable>,
105 return count == other.
count && initial == other.
initial &&
115 std::size_t seed = 0;
116 boost::hash_combine(seed, p.
count);
117 boost::hash_combine(seed, p.
initial);
118 boost::hash_combine(seed, p.
step);
123 typedef boost::unordered_map<IndexBufferKey, osg::ref_ptr<osg::DrawElementsUInt>,
std::size_t operator()(IndexBufferKey const &p) const
Definition: DtOsgShapeCache.h:113
unsigned int step
Definition: DtOsgShapeCache.h:101
Definition: DtOsgShapeCache.h:97
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
ShapeType type
Definition: DtOsgShapeCache.h:71
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
unsigned int initial
Definition: DtOsgShapeCache.h:100
std::size_t operator()(ShapeKey const &p) const
Definition: DtOsgShapeCache.h:82
Definition: DtOsgShapeCache.h:111
boost::unordered_map< IndexBufferKey, osg::ref_ptr< osg::DrawElementsUInt >, IndexBufferKey_hash > IndexBufferMap
Definition: DtOsgShapeCache.h:124
Definition: DtOsgShapeCache.h:80
Contains makVrv::DtVirtualBaseClass class.
Definition: DtOsgShapeCache.h:69
unsigned int faceCount
Definition: DtOsgShapeCache.h:72
boost::unordered_map< ShapeKey, osg::ref_ptr< osg::Drawable >, ShapeKey_hash > ShapeMap
Definition: DtOsgShapeCache.h:93
ShapeMap myShapeMap
Definition: DtOsgShapeCache.h:94
A cache responsible for storing osg shape geodes. Each shape is a unit size (1x1x1).
Definition: DtOsgShapeCache.h:29
unsigned int count
Definition: DtOsgShapeCache.h:99
bool operator==(const DtTextureAtlasIndexParser::StringOrFloatAttrib &lhs, const DtTextureAtlasIndexParser::StringOrFloatAttrib &rhs)
needed for search comparison code
Definition: DtTextureAtlasIndexParser.h:153
Definition: DtOsgShapeCache.h:44
Contains DLL export macros.
IndexBufferMap myIndexBufferMap
Definition: DtOsgShapeCache.h:125
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
ShapeType
Definition: DtOsgShapeCache.h:42
Definition: DtOsgShapeCache.h:45