![]() |
VR-Forces 5.0.2 Developer's Guide
|
Class that renders all the diguy instance objects in one osg drawable, major performance improvement.

Public Member Functions | |
| DtDiGuyInstanceDrawable () | |
| virtual | ~DtDiGuyInstanceDrawable () |
| virtual const char * | className () const |
| virtual void | releaseGLObjects (osg::State *state) const |
| virtual void | reset () |
| virtual void | addDrawable (DtDiGuyOsgGraphicsInstanceGroup *drawable) |
| virtual void | drawImplementation (osg::RenderInfo &renderInfo) const |
| virtual void | copy_tbo_data (const int &num_floats, const float *data) |
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 |
Private Member Functions | |
| DtDiGuyInstanceDrawable (const DtDiGuyInstanceDrawable &ob, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)=delete | |
| virtual osg::Object * | clone (const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) const |
| makVrv::DtDiGuyInstanceDrawable::DtDiGuyInstanceDrawable | ( | ) |
ctor
|
virtual |
dtor
|
privatedelete |
Copy CTOR.
|
inlinevirtual |
needed by scene graph visualizer
|
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