VR-Forces 4.8 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 initFillProgram (bool useArrays) const
 compile fill shader program More...
 
virtual void initFbos (osg::RenderInfo &renderInfo) const
 create the fbos for copying More...
 

Protected Attributes

DtVarjoProvidermyProvider
 
varjo_Session * myVarjoSession
 
int myWidth
 
int myHeight
 
bool myUseDepthLayers
 
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...
 
DtGlProgrammySwapChainColorCopyProgram
 shader to copy color texture into swapchain More...
 
GLint myLayerUniformLocation
 location of the layer uniform when filling from tex2d arrays More...
 
osg::ref_ptr< osg::StateSet > mySwapChainFillStateSet
 state set to encapsulate state changes when doing swapchain fill More...
 
std::vector< GLuintmyDepthSwapChainFbos
 fbo for depth swapchain render operations More...
 
std::vector< GLuintmyChannelDepthFbos
 an fbo with the channels depth texture attached More...
 
- 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::initFillProgram ( bool  useArrays) const
protectedvirtual

compile fill shader program

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

create the fbos for copying

Member Data Documentation

DtVarjoProvider* makVrv::DtSubmitVarjoViewCallback::myProvider
protected
varjo_Session* makVrv::DtSubmitVarjoViewCallback::myVarjoSession
protected
int makVrv::DtSubmitVarjoViewCallback::myWidth
protected
int makVrv::DtSubmitVarjoViewCallback::myHeight
protected
bool makVrv::DtSubmitVarjoViewCallback::myUseDepthLayers
protected
varjo_TextureFormat makVrv::DtSubmitVarjoViewCallback::myDepthFormat
protected
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::mySwapChainColorCopyProgram
mutableprotected

shader to copy color texture into swapchain

GLint makVrv::DtSubmitVarjoViewCallback::myLayerUniformLocation
mutableprotected

location of the layer uniform when filling from tex2d arrays

osg::ref_ptr<osg::StateSet> makVrv::DtSubmitVarjoViewCallback::mySwapChainFillStateSet
mutableprotected

state set to encapsulate state changes when doing swapchain fill

std::vector<GLuint> makVrv::DtSubmitVarjoViewCallback::myDepthSwapChainFbos
mutableprotected

fbo for depth swapchain render operations

std::vector<GLuint> makVrv::DtSubmitVarjoViewCallback::myChannelDepthFbos
mutableprotected

an fbo with the channels depth texture attached


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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)