![]() |
VR-Forces 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 |
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 at the beginning of every frame 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 |