VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtSubmitVarjoViewCallback Class Reference

An OSG camera post darw callback that will submit the view to the underlying VR system. More...

Inheritance diagram for makVrv::DtSubmitVarjoViewCallback:
Inheritance graph
[legend]

Public Member Functions

 DtSubmitVarjoViewCallback (DtDe &de, DtVirtualRealityPostProcessor &pp, DtVirtualRealityDriver &driver, vrvVirtualReality::DtEye eye)
 CTOR takes the post processor, eye to submit for and the VR driver. More...
 
virtual ~DtSubmitVarjoViewCallback ()
 DTOR. More...
 
- Public Member Functions inherited from makVrv::DtSubmitViewCallback
 DtSubmitViewCallback (DtDe &de, DtVirtualRealityPostProcessor &pp, DtVirtualRealityDriver &driver, vrvVirtualReality::DtEye eye)
 CTOR takes the post processor, eye to submit for and the VR driver. More...
 
virtual ~DtSubmitViewCallback ()
 DTOR. More...
 
bool isInitialized () const
 
virtual void operator() (osg::RenderInfo &renderInfo) const
 the callback function called by OSG More...
 

Protected Member Functions

virtual void submit (osg::RenderInfo &renderInfo) const
 overloaded to the actual submit to Varjo More...
 
virtual bool initSwapChain (osg::RenderInfo &renderInfo) const
 create the Varjo texture swapchain More...
 
virtual void initCopyProgram (bool useArrays, bool copyDepth, bool copyStencil) const
 compile copy shader program More...
 
virtual void initFbos (osg::RenderInfo &renderInfo) const
 create the fbos for copying More...
 
virtual void copyTextures (osg::RenderInfo &renderInfo, unsigned int srcColorId, unsigned int srcDepthId, unsigned int srcStencilId, int32_t swapChainIndex) const
 copy the color texture to the color swapchain using the stencil as the source for alpha More...
 

Protected Attributes

DtVarjoProvidermyProvider
 
varjo_Session * myVarjoSession
 
int myWidth
 
int myHeight
 
int myStartFrame
 
varjo_TextureFormat myDepthFormat
 
bool mySwapChainsInitialized
 These are mutable because they are used as part of the const drawImplementation. More...
 
varjo_SwapChainConfig2 mySwapChainConfig
 
varjo_SwapChainConfig2 myDepthSwapChainConfig
 
varjo_SwapChain * myColorSwapChain
 
varjo_SwapChain * myDepthSwapChain
 
int mySwapChainLength
 
std::vector< GLuintmySwapChainFbos
 fbo for swapchain render operations More...
 
DtGlProgrammyCopyProgram
 shader to copy color texture into swapchain More...
 
int myLastCopyProgramConfig
 
osg::ref_ptr< osg::StateSet > myCopyStateSet
 state set to encapsulate state changes when doing swapchain fill More...
 
unsigned int myCopyQuadVbo
 
unsigned int mySrcDepthTexId
 
unsigned int mySrcStencilTexId
 
- Protected Attributes inherited from makVrv::DtSubmitViewCallback
DtVirtualRealityPostProcessormyProcessor
 
DtVirtualRealityDrivermyDriver
 
vrvVirtualReality::DtEye myEye
 
bool myIsInitialized
 
DtBlitOsgToGlTexturemyMutableBlitTexture
 this is mutable because it needs to be created during the operator() callback which is a const function. More...
 
DtDemyDe
 

Private Member Functions

 DtSubmitVarjoViewCallback ()
 prevent default constructor More...
 
 DtSubmitVarjoViewCallback (const DtSubmitVarjoViewCallback &orig)
 prevent copy construction More...
 
DtSubmitVarjoViewCallbackoperator= (const DtSubmitVarjoViewCallback &)
 prevent assignment More...
 

Detailed Description

An OSG camera post darw callback that will submit the view to the underlying VR system.

Constructor & Destructor Documentation

makVrv::DtSubmitVarjoViewCallback::DtSubmitVarjoViewCallback ( DtDe de,
DtVirtualRealityPostProcessor pp,
DtVirtualRealityDriver driver,
vrvVirtualReality::DtEye  eye 
)

CTOR takes the post processor, eye to submit for and the VR driver.

virtual makVrv::DtSubmitVarjoViewCallback::~DtSubmitVarjoViewCallback ( )
virtual

DTOR.

makVrv::DtSubmitVarjoViewCallback::DtSubmitVarjoViewCallback ( )
private

prevent default constructor

makVrv::DtSubmitVarjoViewCallback::DtSubmitVarjoViewCallback ( const DtSubmitVarjoViewCallback orig)
private

prevent copy construction

Member Function Documentation

DtSubmitVarjoViewCallback& makVrv::DtSubmitVarjoViewCallback::operator= ( const DtSubmitVarjoViewCallback )
private

prevent assignment

virtual void makVrv::DtSubmitVarjoViewCallback::submit ( osg::RenderInfo &  renderInfo) const
protectedvirtual

overloaded to the actual submit to Varjo

Implements makVrv::DtSubmitViewCallback.

virtual bool makVrv::DtSubmitVarjoViewCallback::initSwapChain ( osg::RenderInfo &  renderInfo) const
protectedvirtual

create the Varjo texture swapchain

virtual void makVrv::DtSubmitVarjoViewCallback::initCopyProgram ( bool  useArrays,
bool  copyDepth,
bool  copyStencil 
) const
protectedvirtual

compile copy shader program

virtual void makVrv::DtSubmitVarjoViewCallback::initFbos ( osg::RenderInfo &  renderInfo) const
protectedvirtual

create the fbos for copying

virtual void makVrv::DtSubmitVarjoViewCallback::copyTextures ( osg::RenderInfo &  renderInfo,
unsigned int  srcColorId,
unsigned int  srcDepthId,
unsigned int  srcStencilId,
int32_t  swapChainIndex 
) const
protectedvirtual

copy the color texture to the color swapchain using the stencil as the source for alpha

Member Data Documentation

DtVarjoProvider* makVrv::DtSubmitVarjoViewCallback::myProvider
protected
varjo_Session* makVrv::DtSubmitVarjoViewCallback::myVarjoSession
protected
int makVrv::DtSubmitVarjoViewCallback::myWidth
protected
int makVrv::DtSubmitVarjoViewCallback::myHeight
protected
int makVrv::DtSubmitVarjoViewCallback::myStartFrame
mutableprotected
varjo_TextureFormat makVrv::DtSubmitVarjoViewCallback::myDepthFormat
mutableprotected
bool makVrv::DtSubmitVarjoViewCallback::mySwapChainsInitialized
mutableprotected

These are mutable because they are used as part of the const drawImplementation.

varjo_SwapChainConfig2 makVrv::DtSubmitVarjoViewCallback::mySwapChainConfig
mutableprotected
varjo_SwapChainConfig2 makVrv::DtSubmitVarjoViewCallback::myDepthSwapChainConfig
mutableprotected
varjo_SwapChain* makVrv::DtSubmitVarjoViewCallback::myColorSwapChain
mutableprotected
varjo_SwapChain* makVrv::DtSubmitVarjoViewCallback::myDepthSwapChain
mutableprotected
int makVrv::DtSubmitVarjoViewCallback::mySwapChainLength
mutableprotected
std::vector<GLuint> makVrv::DtSubmitVarjoViewCallback::mySwapChainFbos
mutableprotected

fbo for swapchain render operations

DtGlProgram* makVrv::DtSubmitVarjoViewCallback::myCopyProgram
mutableprotected

shader to copy color texture into swapchain

int makVrv::DtSubmitVarjoViewCallback::myLastCopyProgramConfig
mutableprotected
osg::ref_ptr<osg::StateSet> makVrv::DtSubmitVarjoViewCallback::myCopyStateSet
mutableprotected

state set to encapsulate state changes when doing swapchain fill

unsigned int makVrv::DtSubmitVarjoViewCallback::myCopyQuadVbo
mutableprotected
unsigned int makVrv::DtSubmitVarjoViewCallback::mySrcDepthTexId
mutableprotected
unsigned int makVrv::DtSubmitVarjoViewCallback::mySrcStencilTexId
mutableprotected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)