Panda3D
Public Member Functions

TextureMemoryCounter Class Reference

This class is used to gather statistics on texture memory usage, etc. More...

#include "textureMemoryCounter.h"

List of all members.

Public Member Functions

void add_placement (TexturePlacement *placement)
 Adds the indicated TexturePlacement to the counter.
void report (ostream &out, int indent_level)
 Reports the measured texture memory usage.
void reset ()
 Resets the count to zero.

Detailed Description

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 36 of file textureMemoryCounter.h.


Member Function Documentation

void TextureMemoryCounter::add_placement ( TexturePlacement placement)
void TextureMemoryCounter::report ( ostream &  out,
int  indent_level 
)

Reports the measured texture memory usage.

Definition at line 93 of file textureMemoryCounter.cxx.

void TextureMemoryCounter::reset ( )

Resets the count to zero.

Definition at line 41 of file textureMemoryCounter.cxx.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations