VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectGlTextureResidencyManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvOsg/vrvOsg.h>
12 
14 
15 namespace makVrv
16 {
17  class DtDe;
18 
19  class DtGlTextureResidencyManager;
20 
25  {
26  public:
28  static DtIndirectGlTextureResidencyManager& instance(DtDe& de);
29 
32 
39 
40  public:
42  virtual void makeResidentIfNecessary(void* gContext, GLuint textureID);
43 
47  virtual bool makeNonResidentIfNecessary(void* gContext, GLuint textureID, bool canDelete);
48 
50  virtual GLuint64 gpuTextureAddress(GLuint textureID) const;
51 
53  virtual bool isTexture(GLuint textureID) const;
54 
56  virtual DtGlTextureResidencyManager* manager(void);
57 
58  protected:
61 
63  static void registerInstance(DtIndirectGlTextureResidencyManager* manager, DtDe& de);
64 
66  static DtIndirectGlTextureResidencyManager* findInstance(DtDe& de);
67  protected:
69 
72  };
73 
74 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
helper class to handle texture residency
Definition: DtGlTextureResidencyManager.h:21
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtDe & myDe
Definition: DtIndirectGlTextureResidencyManager.h:68
unsigned int GLuint
Definition: DtGlTextureBufferObject.h:17
Contains makVrv::DtVirtualBaseClass class.
Contains DLL export macros.
Enforces a single DtGlTextureResidencyManager across the whole indirect system/vrv (since the DtGlTex...
Definition: DtIndirectGlTextureResidencyManager.h:24
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
DtGlTextureResidencyManager * myGlTextureResidencyManager
pointer to the internal gl residency manager
Definition: DtIndirectGlTextureResidencyManager.h:71

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)