From 2473bc452959f1c84b03c4b9202d601b3325143d Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sun, 24 Apr 2016 09:53:48 -0400 Subject: library-ized ticks --- include/gametime.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/gametime.hpp (limited to 'include/gametime.hpp') diff --git a/include/gametime.hpp b/include/gametime.hpp new file mode 100644 index 0000000..c2991d2 --- /dev/null +++ b/include/gametime.hpp @@ -0,0 +1,16 @@ +#ifndef GAMETIME_H_ +#define GAMETIME_H_ + +namespace gtime { + void setTickCount(unsigned int t); + unsigned int getTickCount(void); + unsigned int getDeltaTime(void); + + void tick(void); + void tick(unsigned int ticks); + bool tickHasPassed(void); + + void mainLoopHandler(void); +} + +#endif // GAMETIME_H_ -- cgit v1.2.3