VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSubmitVarjoOverlayCallback.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
11 
12 #define VARJO_USE_TEXTURE_ARRAYS 0
13 
16 
17 #include <Varjo.h>
18 #include <Varjo_events.h>
19 #include <Varjo_layers.h>
20 #include <Varjo_mr.h>
21 #include <Varjo_gl.h>
22 
23 namespace makVrv
24 {
25  class DtVarjoProvider;
26 
31  {
32  public:
34  DtSubmitVarjoOverlayCallback(osg::Texture2D* tex, DtDe& de, DtVirtualRealityDriver& driver);
35 
38 
39  private:
42 
45 
48 
49  public:
52  virtual void setOffsetMatrix(const osg::Matrixd& mat);
53 
56  virtual void setFlipOverlay(bool flip);
57 
59  virtual void setEnabled(bool enable);
60 
61  protected:
63  virtual void submitOverlay(osg::RenderInfo& renderInfo) const;
64 
66  virtual void copyTextureToSwapChain(osg::Texture2D* texture, varjo_SwapChain* swapchain, osg::RenderInfo& renderInfo) const;
67 
69  virtual bool initSwapChain() const;
70 
72  virtual unsigned int nextSwapImage() const;
73 
74  protected:
75 
77  varjo_Session* myVarjoSession;
78 
79  int myWidth;
80  int myHeight;
81 
82 
85  mutable varjo_SwapChain* myColorSwapChain;
86  mutable varjo_SwapChain* myBlankSwapChain;
87  mutable int mySwapChainLength;
88 
90  };
91 }
int myHeight
Definition: DtSubmitVarjoOverlayCallback.h:80
varjo_SwapChain * myColorSwapChain
Definition: DtSubmitVarjoOverlayCallback.h:85
int mySwapChainLength
Definition: DtSubmitVarjoOverlayCallback.h:87
Contains DLL export macros.
DtVarjoProvider * myProvider
Definition: DtSubmitVarjoOverlayCallback.h:76
An abstract OSG camera callback that will submit the channel to the underlying VR system as an overla...
A Varjo implementation of the DtVirtualRealityProvider abstract base class.
Definition: DtVarjoProvider.h:90
bool mySwapChainsInitialized
These are mutable because they are used as part of the const drawImplementation.
Definition: DtSubmitVarjoOverlayCallback.h:84
int myDisplayEyeMask
Definition: DtSubmitVarjoOverlayCallback.h:89
varjo_SwapChain * myBlankSwapChain
Definition: DtSubmitVarjoOverlayCallback.h:86
A driver that manages virtual reality HMD and input devices.
Definition: DtVirtualRealityDriver.h:49
#define DT_DLL_VRVVR
Definition: vrvVirtualReality.h:19
varjo_Session * myVarjoSession
Definition: DtSubmitVarjoOverlayCallback.h:77
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel...
Definition: DtSubmitVarjoOverlayCallback.h:30
int myWidth
Definition: DtSubmitVarjoOverlayCallback.h:79
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel...
Definition: DtSubmitOverlayCallback.h:26
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69

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)