- added the ability to track pixmap memory usage at start and end of a game

This commit is contained in:
Mark Vejvoda
2010-10-28 21:06:20 +00:00
parent 5cf0313c5a
commit 01c26b4224
6 changed files with 29 additions and 4 deletions

View File

@@ -23,11 +23,10 @@ namespace Shared{ namespace Graphics{
// =====================================================
// class TextureManager
// =====================================================
typedef vector<Texture*> TextureContainer;
//manages textures, creation on request and deletion on destruction
class TextureManager{
protected:
typedef vector<Texture*> TextureContainer;
protected:
TextureContainer textures;
@@ -56,6 +55,8 @@ public:
Texture2D *newTexture2D();
Texture3D *newTexture3D();
TextureCube *newTextureCube();
const TextureContainer &getTextures() const {return textures;}
};