![]() |
VR-Forces Developer's Guide
|
A class responsible for rendering height lines for a camera context.
This class is dynamic in that a set of staging buffers are handed to the class during draw and a single GPU buffer is filled with the staging buffers and then a draw call is made. The GPU buffer will resize to accommodate the staging buffers.
This class also creates a specific set of shaders used for drawing the lines.
Classes | |
| struct | FloatBuffer |
Public Member Functions | |
| virtual | ~Dt3dLinesCameraRenderer () |
| Dt3dLinesCameraRenderer ()=delete | |
| Dt3dLinesCameraRenderer (const Dt3dLinesCameraRenderer &other)=delete | |
| Dt3dLinesCameraRenderer & | operator= (const Dt3dLinesCameraRenderer &other)=delete |
| virtual void | releaseResources () |
| virtual void | reloadShaders () |
| void | draw (const DtVector &cameraPos, const float *viewMat, const float *projMat, const std::vector< Dt3dLinesStagingBuffer * > &lineBuffers, float hdrOutputScale) |
Protected Member Functions | |
| Dt3dLinesCameraRenderer (DtDe &de) | |
| virtual bool | initializeShaders () |
Protected Attributes | |
| DtDe & | myDe |
| DtBufferObject * | myBufferObject |
| size_t | myPointCountMax |
| FloatBuffer | myDynamicBuffer |
| bool | myEnabled |
| DtGlProgram * | myGlProgram |
| int | myUnfmLocViewMatrix |
| int | myUnfmLocProjectionMatrix |
| int | myUnfmLocHdrOutputScale |
Private Attributes | |
| friend | Dt3dLinesCameraRendererCreator |
|
virtual |
|
delete |
Default Constructor not implemented.
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
protected |
Protected CTOR Create using Dt3dLinesCameraRendererCreator.
|
delete |
Assignment Operator not implemented - Assignment not allowed.
|
virtual |
Release any rendering resources.
|
virtual |
Reloads any shaders.
| void makVrv::Dt3dLinesCameraRenderer::draw | ( | const DtVector & | cameraPos, |
| const float * | viewMat, | ||
| const float * | projMat, | ||
| const std::vector< Dt3dLinesStagingBuffer * > & | lineBuffers, | ||
| float | hdrOutputScale | ||
| ) |
Draws all lines.
|
protectedvirtual |
Loads and creates shaders for the program.
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |