compteur de fps

This commit is contained in:
StratiX0
2024-03-29 15:50:08 +01:00
parent 64d39c8869
commit 0568195aec
6 changed files with 223 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
#include "fontshaderclass.h"
#include "fontclass.h"
#include "textclass.h"
#include "fpsclass.h"
/////////////
// GLOBALS //
@@ -44,6 +45,7 @@ public:
private:
bool Render(float, float, float, float);
bool UpdateFps();
private:
D3DClass* m_Direct3D;
CameraClass* m_Camera;
@@ -60,6 +62,9 @@ private:
FontShaderClass* m_FontShader;
FontClass* m_Font;
TextClass *m_TextString1, *m_TextString2, *m_TextString3;
FpsClass* m_Fps;
TextClass* m_FpsString;
int m_previousFps;
};
#endif