Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
anonymous_namespace{Renderer.cpp}::CRendererStatsTable Class Reference

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

Inheritance diagram for anonymous_namespace{Renderer.cpp}::CRendererStatsTable:
Collaboration diagram for anonymous_namespace{Renderer.cpp}::CRendererStatsTable:

Public Member Functions

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

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()

anonymous_namespace{Renderer.cpp}::CRendererStatsTable::CRendererStatsTable ( const CRenderer::Stats st)

Member Function Documentation

◆ GetCellText()

CStr anonymous_namespace{Renderer.cpp}::CRendererStatsTable::GetCellText ( size_t  row,
size_t  col 
)
overridevirtual

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.

◆ GetChild()

AbstractProfileTable * anonymous_namespace{Renderer.cpp}::CRendererStatsTable::GetChild ( size_t  row)
overridevirtual

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.

◆ GetColumns()

const std::vector< ProfileColumn > & anonymous_namespace{Renderer.cpp}::CRendererStatsTable::GetColumns ( )
overridevirtual

GetColumnDescriptions.

Returns
A vector describing all columns of the table.

Implements AbstractProfileTable.

◆ GetName()

CStr anonymous_namespace{Renderer.cpp}::CRendererStatsTable::GetName ( )
overridevirtual

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

Returns
Descriptive name of this table.

Implements AbstractProfileTable.

◆ GetNumberRows()

size_t anonymous_namespace{Renderer.cpp}::CRendererStatsTable::GetNumberRows ( )
overridevirtual

GetNumberRows.

Returns
Number of rows in this table.

Implements AbstractProfileTable.

◆ GetTitle()

CStr anonymous_namespace{Renderer.cpp}::CRendererStatsTable::GetTitle ( )
overridevirtual

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

Returns
Title for the table.

Implements AbstractProfileTable.

◆ NONCOPYABLE()

anonymous_namespace{Renderer.cpp}::CRendererStatsTable::NONCOPYABLE ( CRendererStatsTable  )
private

Member Data Documentation

◆ columnDescriptions

std::vector<ProfileColumn> anonymous_namespace{Renderer.cpp}::CRendererStatsTable::columnDescriptions
private

Column descriptions.

◆ Stats

const CRenderer::Stats& anonymous_namespace{Renderer.cpp}::CRendererStatsTable::Stats
private

Reference to the renderer singleton's stats.


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