Created SpriteSheet

This commit is contained in:
Kayne Ruse
2013-04-29 04:18:20 +10:00
parent d72a3f4fb5
commit 392ef1ef32
7 changed files with 125 additions and 3 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef DELTA_H_
#define DELTA_H_
#include <ctime>
class Delta {
public:
Delta() {
time = tick = 0;
}
int Calculate() {
int c = clock();
time = c - tick;
tick = c;
return time;
}
int GetDelta() const {
return time;
};
private:
int time, tick;
};
#endif