VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSubmitOculusOverlayCallback.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:
39  DtSubmitOculusOverlayCallback(osg::Texture2D* tex, DtDe& de, DtVirtualRealityDriver& driver);
40 
43 
46  virtual void setOffsetMatrix(const osg::Matrixd& mat);
47 
50  virtual void setFlipOverlay(bool flip);
51 
53  virtual void setEnabled(bool enable);
54 
55  protected:
57  virtual void submitOverlay(osg::RenderInfo& renderInfo) const;
58 
60  virtual bool initSwapChain() const;
61 
63  virtual unsigned int nextSwapImage() const;
64 
66  ovrSession mySession;
67 
68  int myWidth;
69  int myHeight;
70 
72  mutable ovrTextureSwapChain mySwapChain;
73  mutable int mySwapChainLength;
74  };
75 }
bool mySwapChainsInitialized
Definition: DtSubmitOculusOverlayCallback.h:71
Contains DLL export macros.
An abstract OSG camera callback that will submit the channel to the underlying VR system as an overla...
ovrSession mySession
Definition: DtSubmitOculusOverlayCallback.h:66
A driver that manages virtual reality HMD and input devices.
Definition: DtVirtualRealityDriver.h:49
#define DT_DLL_VRVVR
Definition: vrvVirtualReality.h:19
An Oculus implementation of the DtVirtualRealityProvider abstract base class.
Definition: DtOculusProvider.h:30
int mySwapChainLength
Definition: DtSubmitOculusOverlayCallback.h:73
DtOculusProvider * myProvider
Definition: DtSubmitOculusOverlayCallback.h:65
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel...
Definition: DtSubmitOverlayCallback.h:26
int myWidth
Definition: DtSubmitOculusOverlayCallback.h:68
int myHeight
Definition: DtSubmitOculusOverlayCallback.h:69
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel...
Definition: DtSubmitOculusOverlayCallback.h:25
ovrTextureSwapChain mySwapChain
Definition: DtSubmitOculusOverlayCallback.h:72

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)