VR-Forces 5.0.3 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) 2023 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 void deletingTexture(GLuint textureID);
51 
54  virtual bool ensureTextureIsResident(GLuint textureID, GLuint64 textureAddress);
55 
57  virtual GLuint64 gpuTextureAddress(GLuint textureID) const;
58 
60  virtual bool isTexture(GLuint textureID) const;
61 
63  virtual DtGlTextureResidencyManager* manager(void);
64 
65  protected:
68 
70  static void registerInstance(DtIndirectGlTextureResidencyManager* manager, DtDe& de);
71 
73  static DtIndirectGlTextureResidencyManager* findInstance(DtDe& de);
74  protected:
76 
79  };
80 
81 }
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:75
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:78

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)