Added methods for checking sizes of various buffer object/texture object pool sizes.
This commit is contained in:
@@ -365,6 +365,8 @@ class OSG_EXPORT GLBufferObjectSet : public Referenced
|
||||
public:
|
||||
GLBufferObjectSet(GLBufferObjectManager* parent, const BufferObjectProfile& profile);
|
||||
|
||||
const BufferObjectProfile& getProfile() const { return _profile; }
|
||||
|
||||
void handlePendingOrphandedGLBufferObjects();
|
||||
|
||||
void deleteAllGLBufferObjects();
|
||||
@@ -390,6 +392,11 @@ class OSG_EXPORT GLBufferObjectSet : public Referenced
|
||||
|
||||
GLBufferObjectManager* getParent() { return _parent; }
|
||||
|
||||
unsigned int computeNumGLBufferObjectsInList() const;
|
||||
unsigned int getNumOfGLBufferObjects() const { return _numOfGLBufferObjects; }
|
||||
unsigned int getNumOrphans() const { return _orphanedGLBufferObjects.size(); }
|
||||
unsigned int getNumPendingOrphans() const { return _pendingOrphanedGLBufferObjects.size(); }
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
@@ -449,7 +456,8 @@ class OSG_EXPORT GLBufferObjectManager : public osg::Referenced
|
||||
|
||||
void newFrame(osg::FrameStamp* fs);
|
||||
void resetStats();
|
||||
void reportStats();
|
||||
void reportStats(std::ostream& out);
|
||||
void recomputeStats(std::ostream& out);
|
||||
|
||||
unsigned int& getFrameNumber() { return _frameNumber; }
|
||||
unsigned int& getNumberFrames() { return _numFrames; }
|
||||
|
||||
@@ -1095,6 +1095,8 @@ class OSG_EXPORT Texture : public osg::StateAttribute
|
||||
public:
|
||||
TextureObjectSet(TextureObjectManager* parent, const TextureProfile& profile);
|
||||
|
||||
const TextureProfile& getProfile() const { return _profile; }
|
||||
|
||||
void handlePendingOrphandedTextureObjects();
|
||||
|
||||
void deleteAllTextureObjects();
|
||||
@@ -1119,6 +1121,11 @@ class OSG_EXPORT Texture : public osg::StateAttribute
|
||||
|
||||
TextureObjectManager* getParent() { return _parent; }
|
||||
|
||||
unsigned int computeNumTextureObjectsInList() const;
|
||||
unsigned int getNumOfTextureObjects() const { return _numOfTextureObjects; }
|
||||
unsigned int getNumOrphans() const { return _orphanedTextureObjects.size(); }
|
||||
unsigned int getNumPendingOrphans() const { return _pendingOrphanedTextureObjects.size(); }
|
||||
|
||||
protected:
|
||||
|
||||
virtual ~TextureObjectSet();
|
||||
@@ -1185,7 +1192,8 @@ class OSG_EXPORT Texture : public osg::StateAttribute
|
||||
|
||||
void newFrame(osg::FrameStamp* fs);
|
||||
void resetStats();
|
||||
void reportStats();
|
||||
void reportStats(std::ostream& out);
|
||||
void recomputeStats(std::ostream& out);
|
||||
|
||||
unsigned int& getFrameNumber() { return _frameNumber; }
|
||||
unsigned int& getNumberFrames() { return _numFrames; }
|
||||
|
||||
Reference in New Issue
Block a user