blob: b3073d52b55afde79768c00b4907537f16512cd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef FRAME_STATS_H
#define FRAME_STATS_H
#include "../Utilities/Singleton.h"
#include "../Utilities/UtilMacros.h"
#include "../Utilities/Type.h"
class FrameStats : public Singleton<FrameStats>
{
public:
void OnBeginFrame();
void OnEndFrame();
void AddDrawCall(uint n = 1);
void AddTrianglesCount(uint n = 1);
GET(uint, DrawCall, m_DrawCall);
GET(uint, TrianglesCount, m_TrianglesCount);
private:
uint m_DrawCall;
uint m_TrianglesCount;
};
#define g_FrameStats (*FrameStats::Instance())
#endif
|