![]() |
VR-Forces Developer's Guide
|
handles data that is specified per instance. Currently only the blend color from the DtOsgArticulatedModel. Owned by a DtIndirectGeometry 1:1
PerGeomInstance acts as a table of contents to various data buffers. Each PerGeomInstance will have an index into the PerInstanceData buffer of this class. There will be 1 PerInstanceData for each PerGeomInstance and the index will be set in addInstance.

Public Member Functions | |
| virtual | ~DtIndirectPerInstanceDataManager () |
| virtual void | addInstance (std::vector< PerGeomInstance * > &perGeomInstances, int instanceId, int lightPointGroupId, bool visible) |
| virtual void | removeInstance (int instanceId) |
| virtual void | processPerInstanceData () |
| virtual void | releaseGLObjects (osg::State *state) const |
| virtual const DtGlBuffer * | gpuPerInstanceDataBuffer () const |
| virtual void | setColor (int instanceId, const Vector4_32 &color) |
| virtual Vector4_32 | color (int instanceId) const |
| virtual void | setOtherData0 (int instanceId, const Vector4_32 &data) |
| virtual Vector4_32 | otherData0 (int instanceId) const |
| virtual void | setVisibility (int instanceId, bool visible) |
| virtual bool | visibility (int instanceId) const |
| virtual void | setLightPointMaxDistance (int instanceId, float distance) |
| virtual float | lightPointMaxDistance (int instanceId) const |
| virtual void | setLightPointGroupId (int instanceId, int lightPointGroupId) |
| virtual int | lightPointGroupId (int instanceId) const |
Public Member Functions inherited from makVrv::DtIndirectManager | |
| DtIndirectManager (DtDe &de) | |
| virtual | ~DtIndirectManager () |
Public Attributes | |
| friend | DtIndirectPerInstanceDataManagerCreator |
Protected Types | |
| typedef std::unordered_map < int, int > | MapInstanceIdToOffsetInInstanceDataBuffer |
Protected Member Functions | |
| DtIndirectPerInstanceDataManager (DtDe &de) | |
Protected Attributes | |
| DtGlBuffer * | myGpuPerInstanceDataBuffer |
| DtReusablePerInstanceData | myVectorPerInstanceData |
| bool | myMutablePerInstanceDataDirty |
| MapInstanceIdToOffsetInInstanceDataBuffer | myMapInstanceIdToOffsetInInstanceDataBuffer |
Protected Attributes inherited from makVrv::DtIndirectManager | |
| DtDe & | myDe |
Private Member Functions | |
| DtIndirectPerInstanceDataManager ()=delete | |
| DtIndirectPerInstanceDataManager (const DtIndirectPerInstanceDataManager &other)=delete | |
| DtIndirectPerInstanceDataManager & | operator= (const DtIndirectPerInstanceDataManager &other)=delete |
Additional Inherited Members | |
Public Types inherited from makVrv::DtIndirectManager | |
| enum | ManagerTypes { BaseClass, LodManager, SwitchManager, DofManager, UvOffsetManager, PerInstanceDataManager } |
Static Public Member Functions inherited from makVrv::DtIndirectManager | |
| static int | managerType () |
|
protected |
map of instance ids to offset in the instance data buffer
|
virtual |
DTOR.
|
protected |
CTOR. only creator can create.
|
privatedelete |
default constructor not implemented
|
privatedelete |
Copy Constructor not implemented – Copy Not Allowed.
|
privatedelete |
Assignment Operator Not implemented – Assignment Not Allowed.
|
virtual |
set/get the color (which is inside per instance data) on an instance
|
virtual |
set/get the color (which is inside per instance data) on an instance
|
virtual |
set/get the other data 0 (which is inside per instance data) on an instance
|
virtual |
set/get the other data 0 (which is inside per instance data) on an instance
|
virtual |
set/get the visibility (which is inside per instance data) on an instance
set/get the visibility (which is inside per instance data) on an instance
|
virtual |
set/get the light point max distance (which is inside per instance data) on an instance
|
virtual |
set/get the light point max distance (which is inside per instance data) on an instance
|
virtual |
set/get the light point group id (which is inside per instance data) on an instance
|
virtual |
set/get the light point group id (which is inside per instance data) on an instance
|
virtual |
add an instance
|
virtual |
remove the instance
|
virtual |
process the per instance data
|
virtual |
clean up gl stuff
|
virtual |
access the per instance data buffer
| friend makVrv::DtIndirectPerInstanceDataManager::DtIndirectPerInstanceDataManagerCreator |
only creator can create
|
protected |
the gpu buffer for per instance data
|
protected |
the reusable vector representing per instance data that is used to hold & transfer the data to the GPU
|
mutableprotected |
do we need an update
|
protected |