Pyrogenesis  trunk
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
CRendererStatsTable Class Reference

Class CRendererStatsTable: Implementation of AbstractProfileTable to display the renderer stats in-game. More...

Inheritance diagram for CRendererStatsTable:
Inheritance graph
[legend]
Collaboration diagram for CRendererStatsTable:
Collaboration graph
[legend]

Public Member Functions

 CRendererStatsTable (const CRenderer::Stats &st)
 
CStr GetName ()
 GetName: Short descriptive name of this table (should be static). More...
 
CStr GetTitle ()
 GetTitle: Longer, explanatory text (can be dynamic). More...
 
size_t GetNumberRows ()
 GetNumberRows. More...
 
const std::vector< ProfileColumn > & GetColumns ()
 GetColumnDescriptions. More...
 
CStr GetCellText (size_t row, size_t col)
 GetCellText. More...
 
AbstractProfileTableGetChild (size_t row)
 GetChild: Return a row's child table if the child is expandable. More...
 
- Public Member Functions inherited from AbstractProfileTable
virtual ~AbstractProfileTable ()
 
virtual bool IsHighlightRow (size_t row)
 IsHighlightRow. More...
 

Private Types

enum  {
  Row_DrawCalls = 0, Row_TerrainTris, Row_WaterTris, Row_ModelTris,
  Row_OverlayTris, Row_BlendSplats, Row_Particles, Row_VBReserved,
  Row_VBAllocated, Row_TextureMemory, Row_ShadersLoaded, NumberRows
}
 

Private Member Functions

 NONCOPYABLE (CRendererStatsTable)
 

Private Attributes

const CRenderer::StatsStats
 Reference to the renderer singleton's stats. More...
 
std::vector< ProfileColumncolumnDescriptions
 Column descriptions. More...
 

Detailed Description

Class CRendererStatsTable: Implementation of AbstractProfileTable to display the renderer stats in-game.

Accesses CRenderer::m_Stats by keeping the reference passed to the constructor.

Member Enumeration Documentation

anonymous enum
private
Enumerator
Row_DrawCalls 
Row_TerrainTris 
Row_WaterTris 
Row_ModelTris 
Row_OverlayTris 
Row_BlendSplats 
Row_Particles 
Row_VBReserved 
Row_VBAllocated 
Row_TextureMemory 
Row_ShadersLoaded 
NumberRows 

Constructor & Destructor Documentation

CRendererStatsTable::CRendererStatsTable ( const CRenderer::Stats st)

Member Function Documentation

CStr CRendererStatsTable::GetCellText ( size_t  row,
size_t  col 
)
virtual

GetCellText.

Parameters
rowRow index (the first row has index 0).
colColumn index (the first column has index 0).
Returns
Text to be displayed in the given cell.

Implements AbstractProfileTable.

AbstractProfileTable * CRendererStatsTable::GetChild ( size_t  row)
virtual

GetChild: Return a row's child table if the child is expandable.

Parameters
rowRow index (the first row has index 0).
Returns
Pointer to the child table if the given row has one. Otherwise, return 0.

Implements AbstractProfileTable.

const std::vector< ProfileColumn > & CRendererStatsTable::GetColumns ( )
virtual

GetColumnDescriptions.

Returns
A vector describing all columns of the table.

Implements AbstractProfileTable.

CStr CRendererStatsTable::GetName ( )
virtual

GetName: Short descriptive name of this table (should be static).

Returns
Descriptive name of this table.

Implements AbstractProfileTable.

size_t CRendererStatsTable::GetNumberRows ( )
virtual

GetNumberRows.

Returns
Number of rows in this table.

Implements AbstractProfileTable.

CStr CRendererStatsTable::GetTitle ( )
virtual

GetTitle: Longer, explanatory text (can be dynamic).

Returns
Title for the table.

Implements AbstractProfileTable.

CRendererStatsTable::NONCOPYABLE ( CRendererStatsTable  )
private

Member Data Documentation

std::vector<ProfileColumn> CRendererStatsTable::columnDescriptions
private

Column descriptions.

const CRenderer::Stats& CRendererStatsTable::Stats
private

Reference to the renderer singleton's stats.


The documentation for this class was generated from the following file: