VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGlTextureMemoryTracker.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * Copyright (c) 2021 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5 
9 
10 #pragma once
12 
14 
15 #include <unordered_map>
16 #include <iostream>
17 
18 namespace makVrv
19 {
31  {
32  public:
35 
37  virtual ~DtGlTextureMemoryTracker();
38 
42  DtGlTextureMemoryTracker& operator=(const DtGlTextureMemoryTracker&) = delete;
43 
44  public:
46  virtual void textureSizeChanged(unsigned int textureId);
47 
49  virtual void textureDeleted(unsigned int textureId);
50 
52  virtual const DtGlTrackedTextureProperties& trackedProperties(void) const;
53 
55  virtual void printStats(std::ostream& outputStream) const;
56 
57  protected:
58  std::unordered_map<unsigned int, int> myTrackedTextures;
59 
61  };
62 }
Contains makVrv::DtGlTrackedTextureProperties class.
DtGlTrackedTextureProperties myProperties
Definition: DtGlTextureMemoryTracker.h:60
Dll export defines.
These properties are used in conjunction with DtGlTextureResidentMemoryTracker/DtGlTextureMemoryTrack...
Definition: DtGlTrackedTextureProperties.h:20
class to track memory for textures: -Call textureSizeChanged when the texture size changes...
Definition: DtGlTextureMemoryTracker.h:30
std::unordered_map< unsigned int, int > myTrackedTextures
Definition: DtGlTextureMemoryTracker.h:58
#define DT_DLL_VRVGRAPHICSUTILS
Definition: vrvGraphicsUtils.h:18

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)