Major update - Architecture Rework
This commit is contained in:
36
enginecustom/src/inc/system/fpsclass.h
Normal file
36
enginecustom/src/inc/system/fpsclass.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#ifndef _FPSCLASS_H_
|
||||
#define _FPSCLASS_H_
|
||||
|
||||
|
||||
/////////////
|
||||
// LINKING //
|
||||
/////////////
|
||||
#pragma comment(lib, "winmm.lib")
|
||||
|
||||
|
||||
//////////////
|
||||
// INCLUDES //
|
||||
//////////////
|
||||
#include <windows.h>
|
||||
#include <mmsystem.h>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Class name: FpsClass
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
class FpsClass
|
||||
{
|
||||
public:
|
||||
FpsClass();
|
||||
FpsClass(const FpsClass&);
|
||||
~FpsClass();
|
||||
|
||||
void Initialize();
|
||||
void Frame();
|
||||
int GetFps();
|
||||
|
||||
private:
|
||||
int m_fps, m_count;
|
||||
unsigned long m_startTime;
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user