Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

sglStats Class Reference

#include <sglStats.hpp>

List of all members.

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 []


Detailed Description

Container for draw traversal statistics collection.

Definition at line 40 of file sglStats.hpp.


Constructor & Destructor Documentation

sglStats::sglStats ( ) [inline]
 

default constructor.

Definition at line 87 of file sglStats.hpp.

sglStats::~sglStats ( ) [inline]
 

destructor.

Definition at line 90 of file sglStats.hpp.

sglStats::sglStats ( const sglStats & )
 

copy contructor.


Member Function Documentation

sglStats & sglStats::operator= ( const sglStats & )
 

assignment operator.

sglStats & sglStats::operator+= ( const sglStats & )
 

+= operator.

void sglStats::reset ( )
 

Reset all the counters to zero.

Referenced by sglStats().

void sglStats::average ( )
 

Compute the average number of gsets, etc..., per frame.


The documentation for this class was generated from the following file:
Generated at Mon Jul 1 18:00:10 2002 for SGL by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001