GLC_RenderStatistics is use to collect render statistics. More...
#include <glc_renderstatistics.h>
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. | |
GLC_RenderStatistics is use to collect render statistics.
Definition at line 33 of file glc_renderstatistics.h.
| 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.
| 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.
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().