VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSubmitOculusViewCallback.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
10 
11 #pragma once
12 
15 
16 #include "OVR_CAPI.h"
17 
18 namespace makVrv
19 {
20  class DtOculusProvider;
21 
26  {
27  private:
30 
33 
36 
37  public:
40 
42  virtual ~DtSubmitOculusViewCallback();
43 
44  protected:
46  virtual void submit(osg::RenderInfo& renderInfo) const;
47 
49  virtual void copyTextureToSwapChain(unsigned int srcId, ovrTextureSwapChain& swapChain) const;
50 
52  virtual bool initSwapChain() const;
53 
55  virtual int initSwapChain(ovrTextureSwapChain* swapChain, int width, int height, ovrTextureFormat format) const;
56 
58  virtual unsigned int nextSwapImage(ovrTextureSwapChain& swapChai) const;
59 
61  ovrSession mySession;
62  int myWidth;
63  int myHeight;
64 
66  mutable ovrTextureSwapChain mySwapChain;
67  mutable ovrTextureSwapChain myDepthSwapChain;
68  mutable int mySwapChainLength;
69  };
70 }
ovrTextureSwapChain myDepthSwapChain
Definition: DtSubmitOculusViewCallback.h:67
int myHeight
Definition: DtSubmitOculusViewCallback.h:63
Contains DLL export macros.
int myWidth
Definition: DtSubmitOculusViewCallback.h:62
A driver that manages virtual reality HMD and input devices.
Definition: DtVirtualRealityDriver.h:49
#define DT_DLL_VRVVR
Definition: vrvVirtualReality.h:19
DtEye
A virtual reality eye.
Definition: vrvVirtualReality.h:37
ovrTextureSwapChain mySwapChain
Definition: DtSubmitOculusViewCallback.h:66
bool mySwapChainsInitialized
Definition: DtSubmitOculusViewCallback.h:65
DtOculusProvider * myProvider
Definition: DtSubmitOculusViewCallback.h:60
An Oculus implementation of the DtVirtualRealityProvider abstract base class.
Definition: DtOculusProvider.h:30
int mySwapChainLength
Definition: DtSubmitOculusViewCallback.h:68
An OSG camera callback that will submit the channel to the underlying VR system as an eye channel...
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel...
Definition: DtSubmitOculusViewCallback.h:25
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
ovrSession mySession
Definition: DtSubmitOculusViewCallback.h:61
A post processing effect responsible for submitting and mirroring the eye views to the VR subsystem...
Definition: DtVirtualRealityPostProcessor.h:34
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel...
Definition: DtSubmitViewCallback.h:29

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)