VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
makVrv::SdsmDrawCallback Struct Reference
Inheritance diagram for makVrv::SdsmDrawCallback:
Inheritance graph
[legend]

Public Member Functions

 SdsmDrawCallback (bool bindFbo, GLenum colorAttachment, unsigned int numPipelines, unsigned int numPartitions, unsigned int width, unsigned int height)
 
virtual ~SdsmDrawCallback ()
 
virtual void operator() (osg::RenderInfo &renderInfo) const
 
float minDepth () const
 
float maxDepth () const
 
float minDepth (unsigned int splitIndex) const
 
float maxDepth (unsigned int splitIndex) const
 
osg::Vec2 partition (unsigned int splitIndex) const
 
bool isSDSMDepthAvailable () const
 

Private Attributes

std::vector< osg::Vec2 > myPartitions
 
unsigned int myFBOBufferIndex
 
std::vector< unsigned intmyPBOBufferIndex
 
unsigned int myCurrentPBOIndex
 
unsigned int myColorTextureIndex
 
unsigned int myDepthRBOBufferIndex
 
GLenum myColorAttachment
 
bool myBindFbo
 
unsigned int myWidth
 
unsigned int myHeight
 
float myMinDepth
 
float myMaxDepth
 
float myMinDepthArray [20]
 
float myMaxDepthArray [20]
 
bool mySDSMDepthAvailable
 

Constructor & Destructor Documentation

makVrv::SdsmDrawCallback::SdsmDrawCallback ( bool  bindFbo,
GLenum  colorAttachment,
unsigned int  numPipelines,
unsigned int  numPartitions,
unsigned int  width,
unsigned int  height 
)

CTOR.

virtual makVrv::SdsmDrawCallback::~SdsmDrawCallback ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::SdsmDrawCallback::operator() ( osg::RenderInfo &  renderInfo) const
virtual

Callback Method to setup framebuffer object and pixel buffer objects for readback of the sampled depth from the gpu.

float makVrv::SdsmDrawCallback::minDepth ( ) const

Returns the minimum non-linear depth value of obtained from the oldest pixel buffer object.

float makVrv::SdsmDrawCallback::maxDepth ( ) const

Returns the maximum non-linear depth value of obtained from the oldest pixel buffer object.

float makVrv::SdsmDrawCallback::minDepth ( unsigned int  splitIndex) const

Returns the minimum non-linear depth value per split of obtained from the oldest pixel buffer object.

float makVrv::SdsmDrawCallback::maxDepth ( unsigned int  splitIndex) const

Returns the maximum non-linear depth value per split of obtained from the oldest pixel buffer object.

osg::Vec2 makVrv::SdsmDrawCallback::partition ( unsigned int  splitIndex) const

Returns the minimum and maximum depth value per split obtained from non-linear depth value of obtained from the oldest pixel buffer object.

bool makVrv::SdsmDrawCallback::isSDSMDepthAvailable ( ) const

Returns true if SDSM depth is already sampled and available from at least one pixel buffer object in the pipeline.

Member Data Documentation

std::vector<osg::Vec2> makVrv::SdsmDrawCallback::myPartitions
mutableprivate
unsigned int makVrv::SdsmDrawCallback::myFBOBufferIndex
mutableprivate
std::vector<unsigned int> makVrv::SdsmDrawCallback::myPBOBufferIndex
mutableprivate
unsigned int makVrv::SdsmDrawCallback::myCurrentPBOIndex
mutableprivate
unsigned int makVrv::SdsmDrawCallback::myColorTextureIndex
mutableprivate
unsigned int makVrv::SdsmDrawCallback::myDepthRBOBufferIndex
mutableprivate
GLenum makVrv::SdsmDrawCallback::myColorAttachment
private
bool makVrv::SdsmDrawCallback::myBindFbo
private
unsigned int makVrv::SdsmDrawCallback::myWidth
private
unsigned int makVrv::SdsmDrawCallback::myHeight
private
float makVrv::SdsmDrawCallback::myMinDepth
mutableprivate
float makVrv::SdsmDrawCallback::myMaxDepth
mutableprivate
float makVrv::SdsmDrawCallback::myMinDepthArray[20]
mutableprivate
float makVrv::SdsmDrawCallback::myMaxDepthArray[20]
mutableprivate
bool makVrv::SdsmDrawCallback::mySDSMDepthAvailable
mutableprivate

The documentation for this struct was generated from the following file:

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)