VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectGlTextureObjectTracker.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 #include <unordered_map>
16 #include <string>
17 
18 namespace makVrv
19 {
20  class DtDe;
21 
22  class DtGlTextureMemoryTracker;
23 
24  class DtVrvToOsgTextureClashDetector;
25 
51  {
52  public:
54  static DtIndirectGlTextureObjectTracker& instance(DtDe& de);
55 
58 
65 
66  public:
68  virtual void textureSizeChanged(unsigned int textureId);
69 
71  virtual void textureDeleted(unsigned int textureId);
72 
74  virtual void textureHandleResidencyChanged(unsigned int textureId, bool residentOrNotResident);
75 
77  virtual const DtGlTextureMemoryTracker* tracker(void) const;
78 
80  virtual void osgTextureSizeChanged(unsigned int textureId);
81 
83  virtual void osgTextureDeleted(unsigned int textureId);
84 
87  virtual unsigned int findVrvTexture(const std::string& textureFilePath) const;
88 
89  protected:
92 
94  static void registerInstance(DtIndirectGlTextureObjectTracker* manager, DtDe& de);
95 
97  static DtIndirectGlTextureObjectTracker* findInstance(DtDe& de);
98 
99  protected:
101 
103 
105  };
106 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Contains makVrv::DtVirtualBaseClass class.
DtGlTextureMemoryTracker * myVrvTracker
Definition: DtIndirectGlTextureObjectTracker.h:102
This class tracks all the texture objects created on the vrv side. It is primarily used for stats of ...
Definition: DtIndirectGlTextureObjectTracker.h:50
class to track memory for textures: -Call textureSizeChanged when the texture size changes...
Definition: DtGlTextureMemoryTracker.h:31
DtDe & myDe
Definition: DtIndirectGlTextureObjectTracker.h:100
Contains DLL export macros.
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
DtVrvToOsgTextureClashDetector * myVrvToOsgTextureClashDetector
Definition: DtIndirectGlTextureObjectTracker.h:104
This class detects whether a texture object created by vrv was also made by osg or vice versa It dete...
Definition: DtVrvToOsgTextureClashDetector.h:24

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)