VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtXtalSwapChain.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 
29  DtXtalSwapChain(const DtXtalSwapChain& orig);
30 
32  DtXtalSwapChain& operator=(const DtXtalSwapChain&);
33 
34  public:
37 
39  virtual ~DtXtalSwapChain();
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
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
Xtal doesn&#39;t use a swapchain, but currently we need to unpack the texture array into a texture 2d whi...
Definition: DtXtalSwapChain.h:22
std::vector< DtGlTexture * > TextureChain
Definition: DtXtalSwapChain.h:58
std::map< DtSwapChainTextureType, TextureChain > mySwapChains
Definition: DtXtalSwapChain.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:76
DtSwapChainTextureType
Definition: DtSwapChain.h:27

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)