You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#ifndef __FPSMANAGER_H
|
|
#define __FPSMANAGER_H
|
|
|
|
#include <SDL.h>
|
|
|
|
class FPSManager {
|
|
private:
|
|
Uint32 lastticks;
|
|
int frames;
|
|
float tickrate;
|
|
float framerate;
|
|
public:
|
|
FPSManager(int _fps);
|
|
|
|
void setFPS(int _fps);
|
|
void delay();
|
|
float getFPS();
|
|
};
|
|
|
|
#endif
|