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 
17 namespace makVrv
18 {
19  class DtDe;
20 
21  class DtGlTextureMemoryTracker;
22 
23  class DtVrvToOsgTextureClashDetector;
24 
50  {
51  public:
53  static DtIndirectGlTextureObjectTracker& instance(DtDe& de);
54 
57 
64 
65  public:
67  virtual void textureSizeChanged(unsigned int textureId);
68 
70  virtual void textureDeleted(unsigned int textureId);
71 
73  virtual void textureHandleResidencyChanged(unsigned int textureId, bool residentOrNotResident);
74 
76  virtual const DtGlTextureMemoryTracker* tracker(void) const;
77 
79  virtual void osgTextureSizeChanged(unsigned int textureId);
80 
82  virtual void osgTextureDeleted(unsigned int textureId);
83 
86  virtual unsigned int findVrvTexture(const std::string& textureFilePath) const;
87 
88  protected:
91 
93  static void registerInstance(DtIndirectGlTextureObjectTracker* manager, DtDe& de);
94 
96  static DtIndirectGlTextureObjectTracker* findInstance(DtDe& de);
97 
98  protected:
100 
102 
104  };
105 }
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:101
This class tracks all the texture objects created on the vrv side. It is primarily used for stats of ...
Definition: DtIndirectGlTextureObjectTracker.h:49
class to track memory for textures: -Call textureSizeChanged when the texture size changes...
Definition: DtGlTextureMemoryTracker.h:31
DtDe & myDe
Definition: DtIndirectGlTextureObjectTracker.h:99
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:72
DtVrvToOsgTextureClashDetector * myVrvToOsgTextureClashDetector
Definition: DtIndirectGlTextureObjectTracker.h:103
This class detects whether a texture object created by vrv was also made by osg or vice versa It dete...
Definition: DtVrvToOsgTextureClashDetector.h:23

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)