GLC_RenderStatistics Class Reference

GLC_RenderStatistics is use to collect render statistics. More...

#include <glc_renderstatistics.h>

List of all members.

Static Public Member Functions

Get Functions

static bool activated ()
 Return true statistics are activated.
static unsigned int bodyCount ()
 Return current body count.
static unsigned long triangleCount ()
 Return current triangles count.
Set Functions

static void setActivationFlag (bool flag)
 Set activation flag to the given flag.
static void reset ()
 Reset all count.
static void addBodies (unsigned int bodies)
 Add bodies to the current body count.
static void addTriangles (unsigned int triangles)
 Add Triangles to the current tringle count.

Private Member Functions

Constructor / Destructor

 GLC_RenderStatistics ()
 Private constructor. This class is static only.
virtual ~GLC_RenderStatistics ()

Static Private Attributes

static bool m_IsActivated = false
 Flag to know if statistics are activated.
static unsigned int m_LastRenderGeometryCount = 0
 Last render geometry count.
static unsigned long m_LastRenderPolygonCount = 0
 Last render polygon count.

Detailed Description

GLC_RenderStatistics is use to collect render statistics.

Definition at line 33 of file glc_renderstatistics.h.


Constructor & Destructor Documentation

GLC_RenderStatistics::GLC_RenderStatistics (  )  [private]

Private constructor. This class is static only.

Definition at line 31 of file glc_renderstatistics.cpp.

GLC_RenderStatistics::~GLC_RenderStatistics (  )  [private, virtual]

Definition at line 37 of file glc_renderstatistics.cpp.


Member Function Documentation

bool GLC_RenderStatistics::activated (  )  [static]

Return true statistics are activated.

Definition at line 45 of file glc_renderstatistics.cpp.

References m_IsActivated.

void GLC_RenderStatistics::addBodies ( unsigned int  bodies  )  [static]

Add bodies to the current body count.

Definition at line 74 of file glc_renderstatistics.cpp.

References m_IsActivated, and m_LastRenderGeometryCount.

Referenced by GLC_Mesh::glDraw().

void GLC_RenderStatistics::addTriangles ( unsigned int  triangles  )  [static]

Add Triangles to the current tringle count.

Definition at line 82 of file glc_renderstatistics.cpp.

References m_IsActivated, and m_LastRenderPolygonCount.

unsigned int GLC_RenderStatistics::bodyCount (  )  [static]

Return current body count.

Definition at line 50 of file glc_renderstatistics.cpp.

References m_LastRenderGeometryCount.

void GLC_RenderStatistics::reset (  )  [static]

Reset all count.

Definition at line 68 of file glc_renderstatistics.cpp.

References m_LastRenderGeometryCount, and m_LastRenderPolygonCount.

void GLC_RenderStatistics::setActivationFlag ( bool  flag  )  [static]

Set activation flag to the given flag.

Definition at line 63 of file glc_renderstatistics.cpp.

References m_IsActivated.

unsigned long GLC_RenderStatistics::triangleCount (  )  [static]

Return current triangles count.

Definition at line 55 of file glc_renderstatistics.cpp.

References m_LastRenderPolygonCount.


Member Data Documentation

bool GLC_RenderStatistics::m_IsActivated = false [static, private]

Flag to know if statistics are activated.

Definition at line 85 of file glc_renderstatistics.h.

Referenced by activated(), addBodies(), addTriangles(), and setActivationFlag().

unsigned int GLC_RenderStatistics::m_LastRenderGeometryCount = 0 [static, private]

Last render geometry count.

Definition at line 88 of file glc_renderstatistics.h.

Referenced by addBodies(), bodyCount(), and reset().

unsigned long GLC_RenderStatistics::m_LastRenderPolygonCount = 0 [static, private]

Last render polygon count.

Definition at line 91 of file glc_renderstatistics.h.

Referenced by addTriangles(), reset(), and triangleCount().


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

SourceForge.net Logo

©2005-2011 Laurent Ribon