![]() |
VR-Forces Developer's Guide
|
class for wrapping, initializing, managing dof shader constants. This is used by DtIndirectDofProgram to set up the ubo for the dof compute shader. The uniform indices are intitialized by this class, but the actual values are set in DtIndirectDofProgram when the ubo is updated.

Public Member Functions | |
| DtIndirectDofProgramConstants () | |
| virtual | ~DtIndirectDofProgramConstants () |
| virtual void | init (const DtGlProgram *program) override |
Public Attributes | |
| int | myMaxNumInstancesIndex |
| int | myGeometrySpecificationsBufferSizeIndex |
| int | myModelViewMatrixIndex |
| int | myZoomMagnificationIndex |
| int | myGlobalModelScaleFactorIndex |
Protected Member Functions | |
| virtual void | reset () override |
| int | getUniformIndex (const DtGlProgram *program, const char *uniformName) const |
Static Protected Attributes | |
| static const char * | theDofManagerMaxNumInstancesUniformName |
| static const char * | theDofManagerGeometrySpecificationsBufferSizeUniformName |
| static const char * | theModelViewMatrixUniformName |
| static const char * | theZoomMagOrthoDistanceOrthoCullUniformName |
| static const char * | theGlobalModelScaleFactorUniformName |
Private Member Functions | |
| DtIndirectDofProgramConstants (const DtIndirectDofProgramConstants &rhs)=delete | |
| DtIndirectDofProgramConstants & | operator= (const DtIndirectDofProgramConstants &rhs)=delete |
| makVrv::DtIndirectDofProgramConstants::DtIndirectDofProgramConstants | ( | ) |
CTOR.
|
virtual |
DTOR.
|
privatedelete |
not allowed
|
privatedelete |
not allowed
|
overridevirtual |
initialize
Implements makVrv::DtProgramConstants.
|
overrideprotectedvirtual |
reset to invalid value
Implements makVrv::DtProgramConstants.
|
protected |
helper to get uniform index
| int makVrv::DtIndirectDofProgramConstants::myMaxNumInstancesIndex |
| int makVrv::DtIndirectDofProgramConstants::myGeometrySpecificationsBufferSizeIndex |
| int makVrv::DtIndirectDofProgramConstants::myModelViewMatrixIndex |
| int makVrv::DtIndirectDofProgramConstants::myZoomMagnificationIndex |
| int makVrv::DtIndirectDofProgramConstants::myGlobalModelScaleFactorIndex |
|
staticprotected |
these are the variable names in the buffer object
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |