![]() |
VR-Forces 4.8 Class Documentation
|
Class that renders all the diguy instance objects in one osg drawable, major performance improvement. More...

Public Member Functions | |
| DtDiGuyInstanceDrawable () | |
| ctor More... | |
| virtual | ~DtDiGuyInstanceDrawable () |
| dtor More... | |
| virtual void | releaseGLObjects (osg::State *state) const |
| releases texture data More... | |
| virtual void | reset () |
| called every frame at the beginning to clear out drawables list More... | |
| virtual void | addDrawable (DtDiGuyOsgGraphicsInstanceGroup *drawable) |
| adds an instanced drawable More... | |
| virtual void | drawImplementation (osg::RenderInfo &renderInfo) const |
| draws all the drawables. More... | |
| virtual void | copy_tbo_data (const int &num_floats, const float *data) |
| function called by main thread job to get data down to the shared GPU More... | |
Protected Member Functions | |
| virtual void | setupTextureBufferObject () |
Protected Attributes | |
| tbb::concurrent_vector < DtDiGuyOsgGraphicsInstanceGroup * > | myDrawables |
| tbb::concurrent_vector < DtDiGuyOsgGraphicsInstanceGroup * > | myTransparentDrawables |
| osg::Vec3d | myMutableCameraPosition |
| osg::ref_ptr< osg::StateAttribute > | myShaderProgram |
| DtGlTextureBufferObject * | m_diguy_texture_buffer |
| osg::ref_ptr < TextureBufferObjectApplyAttribute > | m_diguy_texture_buffer_attribute |
| bool | m_ready_for_clear |
| diguy updates add stuff to drawable list, but sometimes that happens 2x, not sure why. More... | |
Private Member Functions | |
| DtDiGuyInstanceDrawable (const DtDiGuyInstanceDrawable &ob, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
| Copy CTOR. More... | |
| virtual osg::Object * | clone (const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) const |
| Clone this object. More... | |
Class that renders all the diguy instance objects in one osg drawable, major performance improvement.
| makVrv::DtDiGuyInstanceDrawable::DtDiGuyInstanceDrawable | ( | ) |
ctor
|
virtual |
dtor
|
private |
Copy CTOR.
|
virtual |
releases texture data
|
virtual |
called every frame at the beginning to clear out drawables list
|
virtual |
adds an instanced drawable
|
virtual |
draws all the drawables.
|
virtual |
function called by main thread job to get data down to the shared GPU
|
protectedvirtual |
|
privatevirtual |
Clone this object.
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
mutableprotected |
|
protected |
|
mutableprotected |
diguy updates add stuff to drawable list, but sometimes that happens 2x, not sure why.
so theres gaurd code to stop them from being added 2x, also sometimes there are diguy updates without drawing. like plan view and xr view. so need a way to control the reset of drawable list