VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOpenVRSwapChain.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 namespace makVrv
16 {
17  class DtDe;
18  class DtGlTexture;
19 
23  {
24  private:
27 
30 
32  DtOpenVRSwapChain& operator=(const DtOpenVRSwapChain&);
33 
34  public:
37 
39  virtual ~DtOpenVRSwapChain();
40 
42  virtual bool initalise(unsigned int width, unsigned int height, unsigned int layers, DtSwapChainTextureType type, DtGlImageType format);
43 
45  bool addFormat(DtSwapChainTextureType type, DtGlImageType format);
46 
48  virtual void acquireTextures();
49 
51  virtual unsigned int getTexture(DtSwapChainTextureType type, int index) const;
52 
54  virtual void releaseTextures();
55 
56  protected:
57 
58  typedef std::vector<DtGlTexture*> TextureChain;
59  mutable std::map<DtSwapChainTextureType, TextureChain> mySwapChains;
60 
61  };
62 }
Contains DLL export macros.
#define DT_DLL_VRVVR
Definition: vrvVirtualReality.h:19
OpenVR doesn&#39;t use a swapchain, but currently we need to unpack the texture array into a texture 2d w...
Definition: DtOpenVRSwapChain.h:22
DtEye
A virtual reality eye.
Definition: vrvVirtualReality.h:37
Base implementation of a texture swapchain.
Base implementation of a texture swapchain.
Definition: DtSwapChain.h:37
DtGlImageType
Definition: DtGlImageType.h:15
std::map< DtSwapChainTextureType, TextureChain > mySwapChains
Definition: DtOpenVRSwapChain.h:59
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:72
DtSwapChainTextureType
Definition: DtSwapChain.h:27
std::vector< DtGlTexture * > TextureChain
Definition: DtOpenVRSwapChain.h:58

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)