summaryrefslogtreecommitdiff
path: root/inc/sdl/timer.hpp
diff options
context:
space:
mode:
authormajortom6 <tombarrett@siu.edu>2017-02-19 09:17:35 -0600
committerTom Barrett <tombarrett@siu.edu>2017-03-07 13:23:41 -0600
commit5c46e0f0a924989201c6784b0f956bc442f14a7e (patch)
tree33b5889b872023bd7d414f7baec45706330813b3 /inc/sdl/timer.hpp
parent2cc21176467d4501adb7bfb9ee03eb9a2a7d14f2 (diff)
-removed glm library, its in the debian repos
-made opengl and sdl folders in includes, moved various *hpps to them
Diffstat (limited to 'inc/sdl/timer.hpp')
-rw-r--r--inc/sdl/timer.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/inc/sdl/timer.hpp b/inc/sdl/timer.hpp
new file mode 100644
index 0000000..d4e46e8
--- /dev/null
+++ b/inc/sdl/timer.hpp
@@ -0,0 +1,25 @@
+#ifndef timer_h
+#define timer_h
+
+#include <SDL2/SDL.h>
+
+class Timer
+{
+ public:
+ Timer();
+ void Start();
+ void Stop();
+ void Pause();
+ void unPause();
+ int getTicks();
+ bool isStarted(){return started;};
+ bool isPaused(){return paused;};
+
+ private:
+ int startTicks;
+ int pausedTicks;
+ bool paused;
+ bool started;
+};
+
+#endif