VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtVarjoSwapChain.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
14 
15 #include <Varjo.h>
16 #include <Varjo_layers.h>
17 
18 #include <map>
19 
20 namespace makVrv
21 {
22  class DtDe;
23 
27  {
28  private:
31 
34 
36  DtVarjoSwapChain& operator=(const DtVarjoSwapChain&);
37 
38  public:
40  DtVarjoSwapChain(DtDe& de, vrvVirtualReality::DtEye eye, varjo_Session* session);
41 
43  virtual ~DtVarjoSwapChain();
44 
46  virtual bool initalise(unsigned int width, unsigned int height, unsigned int layers, DtSwapChainTextureType type, DtGlImageType format);
47 
49  bool addFormat(DtSwapChainTextureType type, DtGlImageType format);
50 
52  virtual void acquireTextures();
53 
55  virtual unsigned int getTexture(DtSwapChainTextureType type, int index) const;
56 
58  virtual void releaseTextures();
59 
60  //
61  // Varjo specific
62 
64  varjo_SwapChain* getSwapChain(DtSwapChainTextureType type) const;
65 
67  varjo_TextureFormat getVarjoFormat(DtGlImageType format) const;
68 
69  protected:
70  varjo_Session* myVarjoSession;
71  mutable std::map<DtSwapChainTextureType, varjo_SwapChainConfig2> mySwapChainConfigs;
72  mutable std::map<DtSwapChainTextureType, varjo_SwapChain*> mySwapChains;
73  };
74 }
Contains DLL export macros.
Varjo implementation of a texture swapchain.
Definition: DtVarjoSwapChain.h:26
#define DT_DLL_VRVVR
Definition: vrvVirtualReality.h:19
DtEye
A virtual reality eye.
Definition: vrvVirtualReality.h:37
std::map< DtSwapChainTextureType, varjo_SwapChainConfig2 > mySwapChainConfigs
Definition: DtVarjoSwapChain.h:71
varjo_Session * myVarjoSession
Definition: DtVarjoSwapChain.h:70
Base implementation of a texture swapchain.
Base implementation of a texture swapchain.
Definition: DtSwapChain.h:35
DtGlImageType
Definition: DtGlImageType.h:15
std::map< DtSwapChainTextureType, varjo_SwapChain * > mySwapChains
Definition: DtVarjoSwapChain.h:72
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
DtSwapChainTextureType
Definition: DtSwapChain.h:25

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)