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::DtSubmitOculusViewCallback Class Reference

An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel. More...

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

Public Member Functions

 DtSubmitOculusViewCallback (DtDe &de, DtVirtualRealityPostProcessor &pp, DtVirtualRealityDriver &driver, vrvVirtualReality::DtEye eye)
 CTOR takes the post processor, eye to submit for and the VR driver. More...
 
virtual ~DtSubmitOculusViewCallback ()
 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 Oculus More...
 
virtual void copyTextureToSwapChain (unsigned int srcId, ovrTextureSwapChain &swapChain) const
 copy texute into a swapchains texture More...
 
virtual bool initSwapChain () const
 create the oculus texture swapchain More...
 
virtual int initSwapChain (ovrTextureSwapChain *swapChain, int width, int height, ovrTextureFormat format) const
 helper fuction to setup an individual swapchain More...
 
virtual unsigned int nextSwapImage (ovrTextureSwapChain &swapChai) const
 get the next texture id in the swapchain More...
 

Protected Attributes

DtOculusProvidermyProvider
 
ovrSession mySession
 
int myWidth
 
int myHeight
 
bool mySwapChainsInitialized
 
ovrTextureSwapChain mySwapChain
 
ovrTextureSwapChain myDepthSwapChain
 
int mySwapChainLength
 
- 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

 DtSubmitOculusViewCallback ()
 prevent default constructor More...
 
 DtSubmitOculusViewCallback (const DtSubmitOculusViewCallback &orig)
 prevent copy construction More...
 
DtSubmitOculusViewCallbackoperator= (const DtSubmitOculusViewCallback &)
 prevent assignment More...
 

Detailed Description

An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel.

Constructor & Destructor Documentation

makVrv::DtSubmitOculusViewCallback::DtSubmitOculusViewCallback ( )
private

prevent default constructor

makVrv::DtSubmitOculusViewCallback::DtSubmitOculusViewCallback ( const DtSubmitOculusViewCallback orig)
private

prevent copy construction

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

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

virtual makVrv::DtSubmitOculusViewCallback::~DtSubmitOculusViewCallback ( )
virtual

DTOR.

Member Function Documentation

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

prevent assignment

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

overloaded to the actual submit to Oculus

Implements makVrv::DtSubmitViewCallback.

virtual void makVrv::DtSubmitOculusViewCallback::copyTextureToSwapChain ( unsigned int  srcId,
ovrTextureSwapChain &  swapChain 
) const
protectedvirtual

copy texute into a swapchains texture

virtual bool makVrv::DtSubmitOculusViewCallback::initSwapChain ( ) const
protectedvirtual

create the oculus texture swapchain

virtual int makVrv::DtSubmitOculusViewCallback::initSwapChain ( ovrTextureSwapChain *  swapChain,
int  width,
int  height,
ovrTextureFormat  format 
) const
protectedvirtual

helper fuction to setup an individual swapchain

virtual unsigned int makVrv::DtSubmitOculusViewCallback::nextSwapImage ( ovrTextureSwapChain &  swapChai) const
protectedvirtual

get the next texture id in the swapchain

Member Data Documentation

DtOculusProvider* makVrv::DtSubmitOculusViewCallback::myProvider
protected
ovrSession makVrv::DtSubmitOculusViewCallback::mySession
protected
int makVrv::DtSubmitOculusViewCallback::myWidth
protected
int makVrv::DtSubmitOculusViewCallback::myHeight
protected
bool makVrv::DtSubmitOculusViewCallback::mySwapChainsInitialized
mutableprotected
ovrTextureSwapChain makVrv::DtSubmitOculusViewCallback::mySwapChain
mutableprotected
ovrTextureSwapChain makVrv::DtSubmitOculusViewCallback::myDepthSwapChain
mutableprotected
int makVrv::DtSubmitOculusViewCallback::mySwapChainLength
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)