Helper class to manage instances This class allows you to add a DtInstance_64 Internally, however it stores this as a DtInstance (which the GPU can directly read)
More...
|
| | DtInstanceContainer (const DtInstanceContainer &)=delete |
| | not allowed More...
|
| |
| DtInstanceContainer & | operator= (const DtInstanceContainer &)=delete |
| | not allowed More...
|
| |
typedef std::unordered_map
< int, DtIndirectOffsetAndSize > | MapInstanceIdToPerGeomInstanceOffsetAndSize |
| |
typedef std::unordered_map
< int, int > | MapInstanceIdToNumLightSources |
| |
| MapIntToInt | myModelIdToGeomOffset |
| |
| SetInts | myUniqueModels |
| |
| VectorInts | myModelAddedOrder |
| |
| MapIntToInt | myModelIdToGeometryCount |
| |
| int | myNumUniqueGeometries |
| |
| MapInstanceIdToPerGeomInstanceOffsetAndSize | myMapInstanceIdToPerGeomInstanceOffsetAndSize |
| |
| MapInstanceIdToNumLightSources | myMapInstanceIdToNumLightSources |
| |
| int | myRunningInstanceId |
| |
| int | myNumValidInstances |
| |
| DtReusablePerGeomInstances | myPerGeomInstances |
| |
| unsigned int | myMaxNumLightSources |
| |
| virtual void | addInstance (const int modelId, const DtPerGeomInstances &perGeomInstancesTemplate, int geometryLocations, int lightSourceCount, int &outPerGeomTemplateOffset, int &outNumGeoms, int &outInstanceIndex) |
| | Add, remove, access instances addInstance also creates the perGeomInstances needed and returns the number of per geom instances that were created and the offset into the perGeomInstance vector. More...
|
| |
| virtual bool | removeInstance (int instanceId) |
| | remove an instance with a given id More...
|
| |
| virtual bool | hasInstance (int instanceId) const |
| | has an instance with a given id? More...
|
| |
virtual const
DtReusablePerGeomInstances & | perGeomInstances (void) const |
| | gets unique geometry Instance data like switch states. (const) More...
|
| |
virtual
DtReusablePerGeomInstances & | perGeomInstances (void) |
| | gets unique geometry Instance data like switch states. (non-const) More...
|
| |
| virtual void | printPerGeomInstances () const |
| | For debugging. Print the contents. More...
|
| |
| virtual int | numValidInstances (void) const |
| | the number of (valid) instances More...
|
| |
| virtual int | numUniqueGeometriesForModel (int modelId) const |
| | get the number of unique geometries that a particular model has More...
|
| |
| virtual int | numUniqueGeometries () const |
| | tracks how many unique geometries there are, for use in buffer memory management. More...
|
| |
| virtual bool | instanceEverAdded (void) const |
| | was an instance ever added? not the same as numValidInstances() More...
|
| |
virtual const
DtIndirectOffsetAndSize & | perGeomInstanceOffsetAndSize (int instanceId) const |
| | access the per geom instance offset and size vector More...
|
| |
| virtual void | incrementNumUniqueGeometries (int number) |
| | adds number to myNumUniqueGeometries More...
|
| |
| virtual const std::vector< int > & | modelAddedOrder () const |
| | get the vector of model ids in the order that they were added More...
|
| |
| virtual unsigned int | maxNumLightSources () const |
| | get the maximum number of light sources that can possibly be rendered by this container More...
|
| |
Helper class to manage instances This class allows you to add a DtInstance_64 Internally, however it stores this as a DtInstance (which the GPU can directly read)