From 691411cdb214178f2d10ab589943993039fe080e Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 22 Dec 2016 10:50:27 -0500 Subject: Sprites flip and shit are good --- include/common.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/common.hpp') diff --git a/include/common.hpp b/include/common.hpp index 3caa083..861905a 100644 --- a/include/common.hpp +++ b/include/common.hpp @@ -209,6 +209,14 @@ constexpr const float MSEC_PER_TICK = 1000.0f / TICKS_PER_SEC; */ std::vector 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. -- cgit v1.2.3