This class is used to gather statistics on texture memory usage, etc. More...
#include "textureMemoryCounter.h"
Public Member Functions | |
void | add_placement (TexturePlacement *placement) |
Adds the indicated TexturePlacement to the counter. More... | |
void | report (std::ostream &out, int indent_level) |
Reports the measured texture memory usage. More... | |
void | reset () |
Resets the count to zero. More... | |
This class is used to gather statistics on texture memory usage, etc.
It adds up the total texture memory required by a number of image files, and reports it at the end.
Definition at line 33 of file textureMemoryCounter.h.
void TextureMemoryCounter::add_placement | ( | TexturePlacement * | placement | ) |
Adds the indicated TexturePlacement to the counter.
Definition at line 54 of file textureMemoryCounter.cxx.
References TexturePlacement::get_texture().
void TextureMemoryCounter::report | ( | std::ostream & | out, |
int | indent_level | ||
) |
Reports the measured texture memory usage.
Definition at line 84 of file textureMemoryCounter.cxx.
References indent().
void TextureMemoryCounter::reset | ( | ) |
Resets the count to zero.
Definition at line 36 of file textureMemoryCounter.cxx.