diff options
author | Andy <drumsetmonkey@gmail.com> | 2016-12-22 10:50:27 -0500 |
---|---|---|
committer | Andy <drumsetmonkey@gmail.com> | 2016-12-22 10:50:27 -0500 |
commit | 691411cdb214178f2d10ab589943993039fe080e (patch) | |
tree | 056acc0b536a05907b60fad86f9a3bc79254325d /include/common.hpp | |
parent | e472a62b750e57724a26d299bb682b4f39405d05 (diff) |
Sprites flip and shit are good
Diffstat (limited to 'include/common.hpp')
-rw-r--r-- | include/common.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/common.hpp b/include/common.hpp index 3caa083..861905a 100644 --- a/include/common.hpp +++ b/include/common.hpp @@ -210,6 +210,14 @@ constexpr const float MSEC_PER_TICK = 1000.0f / TICKS_PER_SEC; std::vector<std::string> StringTokenizer(const std::string& str, char delim); /** + * Seperates a string like, "23,12" to a vec2. + * + * @param s the string to parse + * @return the vec2 of the values passed in the string + */ +vec2 str2coord(std::string s); + +/** * A function to draw a colored box for OpenGL. * To use it, the lower left hand and upper right hand coords are given. * |