VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSubmitVarjoViewCallback.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 
15 
17 
18 #include <osg/RenderInfo>
19 
20 #include <Varjo.h>
21 #include <Varjo_events.h>
22 #include <Varjo_layers.h>
23 #include <Varjo_mr.h>
24 #include <Varjo_gl.h>
25 
26 
27 namespace makVrv
28 {
29  class DtVarjoProvider;
30 
35  {
36  public:
39 
41  virtual ~DtSubmitVarjoViewCallback();
42 
43  private:
46 
49 
52 
53  protected:
55  virtual void submit(osg::RenderInfo& renderInfo) const;
56 
58  virtual bool initSwapChain(osg::RenderInfo& renderInfo) const;
59 
61  virtual void initFillProgram(bool useArrays) const;
62 
64  virtual void initFbos(osg::RenderInfo& renderInfo) const;
65 
66  protected:
67 
69  varjo_Session* myVarjoSession;
70 
71  int myWidth;
72  int myHeight;
73 
75  varjo_TextureFormat myDepthFormat;
76 
79  mutable varjo_SwapChainConfig2 mySwapChainConfig;
80  mutable varjo_SwapChainConfig2 myDepthSwapChainConfig;
81  mutable varjo_SwapChain* myColorSwapChain;
82  mutable varjo_SwapChain* myDepthSwapChain;
83  mutable int mySwapChainLength;
84 
86  mutable std::vector<GLuint> mySwapChainFbos;
87 
90 
93 
96 
98  mutable std::vector<GLuint> myDepthSwapChainFbos;
99 
101  mutable std::vector<GLuint> myChannelDepthFbos;
102 
103  };
104 }
int mySwapChainLength
Definition: DtSubmitVarjoViewCallback.h:83
Contains DLL export macros.
A Varjo implementation of the DtVirtualRealityProvider abstract base class.
Definition: DtVarjoProvider.h:90
varjo_SwapChain * myColorSwapChain
Definition: DtSubmitVarjoViewCallback.h:81
A convenience class to represent an OpenGL Shader Program.
Definition: DtGlShader.h:84
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
int myWidth
Definition: DtSubmitVarjoViewCallback.h:71
An OSG camera post darw callback that will submit the view to the underlying VR system.
Definition: DtSubmitVarjoViewCallback.h:34
A helper classes for creating and managing OpenGL Shader programs.
bool mySwapChainsInitialized
These are mutable because they are used as part of the const drawImplementation.
Definition: DtSubmitVarjoViewCallback.h:78
DtGlProgram * mySwapChainColorCopyProgram
shader to copy color texture into swapchain
Definition: DtSubmitVarjoViewCallback.h:89
varjo_Session * myVarjoSession
Definition: DtSubmitVarjoViewCallback.h:69
std::vector< GLuint > myDepthSwapChainFbos
fbo for depth swapchain render operations
Definition: DtSubmitVarjoViewCallback.h:98
An OSG camera callback that will submit the channel to the underlying VR system as an eye channel...
std::vector< GLuint > mySwapChainFbos
fbo for swapchain render operations
Definition: DtSubmitVarjoViewCallback.h:86
varjo_SwapChainConfig2 myDepthSwapChainConfig
Definition: DtSubmitVarjoViewCallback.h:80
GLint myLayerUniformLocation
location of the layer uniform when filling from tex2d arrays
Definition: DtSubmitVarjoViewCallback.h:92
std::vector< GLuint > myChannelDepthFbos
an fbo with the channels depth texture attached
Definition: DtSubmitVarjoViewCallback.h:101
bool myUseDepthLayers
Definition: DtSubmitVarjoViewCallback.h:74
varjo_SwapChainConfig2 mySwapChainConfig
Definition: DtSubmitVarjoViewCallback.h:79
varjo_SwapChain * myDepthSwapChain
Definition: DtSubmitVarjoViewCallback.h:82
varjo_TextureFormat myDepthFormat
Definition: DtSubmitVarjoViewCallback.h:75
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
int myHeight
Definition: DtSubmitVarjoViewCallback.h:72
osg::ref_ptr< osg::StateSet > mySwapChainFillStateSet
state set to encapsulate state changes when doing swapchain fill
Definition: DtSubmitVarjoViewCallback.h:95
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
DtVarjoProvider * myProvider
Definition: DtSubmitVarjoViewCallback.h:68

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)