VR-Forces 5.0.2 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 
30  {
31  public:
33  static DtIndirectGlTextureObjectTracker& instance(DtDe& de);
34 
37 
44 
45  public:
47  virtual void textureSizeChanged(unsigned int textureId);
48 
50  virtual void textureDeleted(unsigned int textureId);
51 
53  virtual const DtGlTextureMemoryTracker* tracker(void) const;
54 
56  virtual void osgTextureSizeChanged(unsigned int textureId);
57 
59  virtual void osgTextureDeleted(unsigned int textureId);
60 
63  virtual unsigned int findVrvTexture(const std::string& textureFilePath) const;
64 
65  protected:
68 
70  static void registerInstance(DtIndirectGlTextureObjectTracker* manager, DtDe& de);
71 
73  static DtIndirectGlTextureObjectTracker* findInstance(DtDe& de);
74 
75  protected:
77 
79 
81  };
82 }
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:78
This class tracks all the texture objects created on the vrv side It also detects clashes between vrv...
Definition: DtIndirectGlTextureObjectTracker.h:29
class to track memory for textures: -Call textureSizeChanged when the texture size changes...
Definition: DtGlTextureMemoryTracker.h:30
DtDe & myDe
Definition: DtIndirectGlTextureObjectTracker.h:76
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:70
DtVrvToOsgTextureClashDetector * myVrvToOsgTextureClashDetector
Definition: DtIndirectGlTextureObjectTracker.h:80
This class detects whether a texture object created by vrv was also made by osg or vice versa It dete...
Definition: DtVrvToOsgTextureClashDetector.h:22

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)