20 SdsmDrawCallback(
bool bindFbo,
GLenum colorAttachment,
unsigned int numPipelines,
unsigned int numPartitions,
unsigned int width,
unsigned int height);
26 virtual void operator () (osg::RenderInfo& renderInfo)
const;
35 float minDepth(
unsigned int splitIndex)
const;
38 float maxDepth(
unsigned int splitIndex)
const;
41 osg::Vec2
partition(
unsigned int splitIndex)
const;
70 virtual void operator () (osg::RenderInfo& renderInfo)
const;
Definition: DtSdsmDrawCallback.h:17
float myMaxDepth
Definition: DtSdsmDrawCallback.h:57
osg::Vec2 partition(unsigned int splitIndex) const
Returns the minimum and maximum depth value per split obtained from non-linear depth value of obtaine...
bool isSDSMDepthAvailable() const
Returns true if SDSM depth is already sampled and available from at least one pixel buffer object in ...
std::vector< osg::Vec2 > myPartitions
Definition: DtSdsmDrawCallback.h:46
std::vector< unsigned int > myPBOBufferIndex
Definition: DtSdsmDrawCallback.h:48
GLenum myColorAttachment
Definition: DtSdsmDrawCallback.h:52
SdsmDrawCallback(bool bindFbo, GLenum colorAttachment, unsigned int numPipelines, unsigned int numPartitions, unsigned int width, unsigned int height)
CTOR.
virtual void operator()(osg::RenderInfo &renderInfo) const
bool myBindFbo
Definition: DtSdsmDrawCallback.h:53
unsigned int myFBOBufferIndex
Definition: DtSdsmDrawCallback.h:47
float maxDepth() const
Returns the maximum non-linear depth value of obtained from the oldest pixel buffer object...
PostDrawSDSMCallback()
CTOR.
Definition: DtSdsmDrawCallback.h:67
unsigned int myColorTextureIndex
Definition: DtSdsmDrawCallback.h:50
virtual void operator()(osg::RenderInfo &renderInfo) const
Callback Method to setup framebuffer object and pixel buffer objects for readback of the sampled dept...
bool mySDSMDepthAvailable
Definition: DtSdsmDrawCallback.h:60
unsigned int myHeight
Definition: DtSdsmDrawCallback.h:55
unsigned int myCurrentPBOIndex
Definition: DtSdsmDrawCallback.h:49
unsigned int GLenum
Definition: DtGlTextureBufferObject.h:18
float myMinDepth
Definition: DtSdsmDrawCallback.h:56
Definition: DtSdsmDrawCallback.h:64
float myMinDepthArray[20]
Definition: DtSdsmDrawCallback.h:58
float myMaxDepthArray[20]
Definition: DtSdsmDrawCallback.h:59
unsigned int myWidth
Definition: DtSdsmDrawCallback.h:54
virtual ~SdsmDrawCallback()
DTOR.
Contains DLL export macros.
unsigned int myDepthRBOBufferIndex
Definition: DtSdsmDrawCallback.h:51
float minDepth() const
Returns the minimum non-linear depth value of obtained from the oldest pixel buffer object...