![]() |
VR-Forces Developer's Guide
|
OSG Drawable that batches and issues GPU draw calls for all ballistic geometries.

Public Member Functions | |
| virtual void | accept (osg::NodeVisitor &nv) override |
| virtual void | drawImplementation (osg::RenderInfo &renderInfo) const override |
| virtual void | releaseGLObjects (osg::State *state) const override |
| virtual DtBallisticRendererUserData * | add (DtBallisticGeometry *ballisticGeometry, const osg::Matrixd &modelViewMatrix, const osg::Camera *osgCamera) |
Static Public Member Functions | |
| static const std::string & | theClassName (void) |
Public Attributes | |
| friend | DtBallisticRendererCreator |
Protected Member Functions | |
| DtBallisticRenderer (DtDe &de, const std::string &name) | |
| virtual | ~DtBallisticRenderer () |
Protected Attributes | |
| DtDe & | myDe |
| const std::string | myName |
| const DtBallisticRunTimeSettings & | myBallisticRunTimeSettings |
| DtThreadCameraStreamDataManager & | myTcsDataManager |
| DtBallisticRendererUserDataCreator & | myUserDataCreator |
| osg::ref_ptr< osg::StateSet > | myDefaultDrawStateSet |
Private Member Functions | |
| DtBallisticRenderer ()=delete | |
| DtBallisticRenderer (const DtBallisticRenderer &rhs)=delete | |
| DtBallisticRenderer & | operator= (const DtBallisticRenderer &rhs)=delete |
|
protected |
Protected constructor; use the creator factory to instantiate.
| de | Simulation environment. |
| name | Name for this renderer node. |
|
protectedvirtual |
Virtual destructor.
|
privatedelete |
Default construction is not supported.
|
privatedelete |
Copy construction is not supported.
|
privatedelete |
Copy assignment is not supported.
|
overridevirtual |
Overrides osg::Drawable::accept() to collect per-camera draw data during the cull pass.
|
overridevirtual |
Issues all batched draw calls for the current frame.
|
overridevirtual |
Releases per-camera GL objects for all live observers on GL context reset.
Iterates all per-camera DtBallisticRendererUserData entries and calls releaseGLObjects() on each, ensuring GPU buffer handles are invalidated and buffers are re-created on the next cull pass.
|
virtual |
Registers a geometry for batched drawing on a specific camera.
| ballisticGeometry | Geometry to register. |
| modelViewMatrix | Current model-view matrix for this camera. |
| osgCamera | OSG camera performing the cull traversal. |
|
static |
Returns the OSG class name string for this type.
| friend makVrv::DtBallisticRenderer::DtBallisticRendererCreator |
|
protected |
Reference to the simulation environment.
|
protected |
Name of this renderer node.
|
protected |
Reference to the shared ballistic runtime settings.
|
protected |
Manager for per-camera/thread stream data.
|
protected |
Factory for creating per-camera user-data instances.
|
protected |
Default OSG state set (render bin) for draw components.