fps.h

来自「本程序是表现一个草地在天空飞行的情景本程序是系列程序的第五步。」· C头文件 代码 · 共 31 行

H
31
字号

#ifndef _FPS_H
#define _FPS_H

#include <windows.h>
#include <mmsystem.h>

class FPS_CLASS
{
private:
        DWORD tx;
	DWORD t1;
	DWORD t2;
	DWORD FPS;
	DWORD tFPS;
public:
	    char fpsString[255]; 
        DWORD T2;
        float Interval;
        bool IsOneSecond;
        bool MathTime;
        int Ttime;
        void StartMath(int time);
	FPS_CLASS();

	DWORD GetFps();
};



#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?