#include <sglStats.hpp>
Public Types | |
| enum | PrimEnum { ePOINTS, eLINES, eLINESTRIPS, eTRIS, eQUADS, eTRISTRIPS, eTRIFANS, eQUADSTRIPS, ePOLYS, eINDEXED_POINTS, eINDEXED_LINES, eINDEXED_LINESTRIPS, eINDEXED_TRIS, eINDEXED_QUADS, eINDEXED_TRISTRIPS, eINDEXED_TRIFANS, eINDEXED_QUADSTRIPS, eINDEXED_POLYS, eMONO_INDEXED_POINTS, eMONO_INDEXED_LINES, eMONO_INDEXED_LINESTRIPS, eMONO_INDEXED_TRIS, eMONO_INDEXED_QUADS, eMONO_INDEXED_TRISTRIPS, eMONO_INDEXED_TRIFANS, eMONO_INDEXED_QUADSTRIPS, eMONO_INDEXED_POLYS, eINTERLEAVED_POINTS, eINTERLEAVED_LINES, eINTERLEAVED_LINESTRIPS, eINTERLEAVED_LINELOOPS, eINTERLEAVED_TRIS, eINTERLEAVED_QUADS, eINTERLEAVED_TRISTRIPS, eINTERLEAVED_TRIFANS, eINTERLEAVED_QUADSTRIPS, eINTERLEAVED_POLYS, eBEZIER_CURVES, eBEZIER_SURFACES, eNUM_PRIM_TYPES } |
Public Methods | |
| sglStats () | |
| ~sglStats () | |
| sglStats (const sglStats &) | |
| sglStats& | operator= (const sglStats &) |
| sglStats& | operator+= (const sglStats &) |
| void | reset () |
| void | average () |
| void | addNumLights (float num_used, float num_desired) |
| float | getNumLightsUsed () const |
| float | getNumLightsDesired () const |
| void | addFrames (float num) |
| float | getFrames () const |
| void | addTransforms (float num) |
| float | getTransforms () const |
| void | addStateChanges (float num) |
| float | getStateChanges () const |
| void | addTotalGSets (float num) |
| float | getTotalGSets () const |
| void | addDListedGSets (float num) |
| float | getDListedGSets () const |
| void | addTransparencyEnabledGSets (float num) |
| float | getTransparencyEnabledGSets () const |
| void | addOcclusionEnabledGSets (float num) |
| float | getOcclusionEnabledGSets () const |
| void | addOccludedGSets (float num) |
| float | getOccludedGSets () const |
| void | addLitGSets (float num) |
| float | getLitGSets () const |
| void | addTexturedGSets (float num) |
| float | getTexturedGSets () const |
| void | addTexture (const sglTexture *tex) |
| float | getNumTextures () |
| float | getIdealTextureMemory () |
| float | getLikelyTextureMemory () |
| void | addText (float num) |
| float | getText () const |
| void | addGSets (PrimEnum type, float num) |
| float | getGSets (PrimEnum type) |
| void | addPrims (PrimEnum type, float num) |
| float | getPrims (PrimEnum type) |
| void | addVertices (PrimEnum type, float num) |
| float | getVertices (PrimEnum type) |
| void | addTriangles (PrimEnum type, float num) |
| float | getTriangles (PrimEnum type) |
| void | printInfo (ostream &ostrm, const char *indent_string) const |
Static Public Attributes | |
| const char* | s_geometry_type_names [] |
Definition at line 40 of file sglStats.hpp.
|
|
default constructor.
Definition at line 87 of file sglStats.hpp. |
|
|
destructor.
Definition at line 90 of file sglStats.hpp. |
|
|
copy contructor.
|
|
|
assignment operator.
|
|
|
+= operator.
|
|
|
Reset all the counters to zero.
Referenced by sglStats(). |
|
|
Compute the average number of gsets, etc..., per frame.
|
1.2.6 written by Dimitri van Heesch,
© 1997-2001