您最多能選擇 25 個主題 主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。

25 行
310 B

#ifndef __FPSMANAGER_H
#define __FPSMANAGER_H
#include <SDL.h>
namespace segl {
class FPSManager {
private:
Uint32 lastticks;
int frames;
float tickrate;
float framerate;
public:
FPSManager(int _fps);
void setFPS(int _fps);
void delay();
float getFPS();
};
} // namespace segl
#endif