diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-04-24 22:50:44 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-04-24 22:50:44 -0400 |
commit | 78af1d0420dfccbd27501e383553e58248229a37 (patch) | |
tree | f8b7f7c79f034b2c3da5ef29c26330bc9c4c65e1 /include/gametime.hpp | |
parent | 13236a26d3c1f4b09e105af42872ab4ad2753208 (diff) | |
parent | 2473bc452959f1c84b03c4b9202d601b3325143d (diff) |
Merge branch 'master' of https://github.com/tcsullivan/gamedev
Diffstat (limited to 'include/gametime.hpp')
-rw-r--r-- | include/gametime.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
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_ |