GFXDeviceStatistics Class Reference

#include <gfxDeviceStatistics.h>

List of all members.

Public Member Functions

 GFXDeviceStatistics ()
void setPrefix (const String &prefix)
void clear ()
 Clear stats.
void start (GFXDeviceStatistics *source)
 Copy from source (should just be a memcpy, but that may change later) used in conjunction with end to get a subset of statistics.
void end (GFXDeviceStatistics *source)
 Used with start to get a subset of stats on a device.
void exportToConsole ()
 Exports the stats to the console.

Public Attributes

S32 mPolyCount
S32 mDrawCalls
S32 mRenderTargetChanges

Private Attributes

String vnPolyCount
String vnDrawCalls
String vnRenderTargetChanges


Constructor & Destructor Documentation

GFXDeviceStatistics::GFXDeviceStatistics (  ) 


Member Function Documentation

void GFXDeviceStatistics::setPrefix ( const String prefix  ) 

void GFXDeviceStatistics::clear (  ) 

Clear stats.

void GFXDeviceStatistics::start ( GFXDeviceStatistics source  ) 

Copy from source (should just be a memcpy, but that may change later) used in conjunction with end to get a subset of statistics.

For example, statistics for a particular render bin.

void GFXDeviceStatistics::end ( GFXDeviceStatistics source  ) 

Used with start to get a subset of stats on a device.

Basically will do this->mPolyCount = source->mPolyCount - this->mPolyCount. (Fancy!)

void GFXDeviceStatistics::exportToConsole (  ) 

Exports the stats to the console.


Member Data Documentation