Panda3D
|
This class maintains a linked list of BufferContexts that might be allocated on the graphics card in some context. More...
#include "bufferContextChain.h"
Public Member Functions | |
int | get_count () const |
Returns the total number of BufferContexts currently assigned to this tracker. | |
BufferContext * | get_first () |
Returns the first BufferContext object stored in the tracker. | |
size_t | get_total_size () const |
Returns the total number of bytes represented by the BufferContexts currently assigned to this tracker. | |
void | take_from (BufferContextChain &other) |
Moves all of the BufferContexts from the other tracker onto this one. | |
void | write (std::ostream &out, int indent_level) const |
Friends | |
class | BufferContext |
This class maintains a linked list of BufferContexts that might be allocated on the graphics card in some context.
There is a different BufferContextChain for resident textures, active textures, evicted textures, etc.
The primary purpose of this class is to facilitate PStats reporting of graphics memory usage.
Definition at line 31 of file bufferContextChain.h.
|
inline |
Definition at line 17 of file bufferContextChain.I.
|
inline |
Definition at line 28 of file bufferContextChain.I.
|
inline |
Returns the total number of BufferContexts currently assigned to this tracker.
Definition at line 46 of file bufferContextChain.I.
BufferContext * BufferContextChain::get_first | ( | ) |
Returns the first BufferContext object stored in the tracker.
You can walk through the entire list of objects stored on the tracker by calling get_next() on each returned object, until the return value is NULL.
Definition at line 23 of file bufferContextChain.cxx.
|
inline |
Returns the total number of bytes represented by the BufferContexts currently assigned to this tracker.
Definition at line 37 of file bufferContextChain.I.
void BufferContextChain::take_from | ( | BufferContextChain & | other | ) |
Moves all of the BufferContexts from the other tracker onto this one.
Definition at line 36 of file bufferContextChain.cxx.
void BufferContextChain::write | ( | std::ostream & | out, |
int | indent_level ) const |
Definition at line 56 of file bufferContextChain.cxx.
|
friend |
Definition at line 50 of file bufferContextChain.h.