Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-01-27 09:39:13 +0000
committerStijn Buys <ingar@osirion.org>2013-01-27 09:39:13 +0000
commit52a0d3571f56187d8801793b36a5511966e1d9a0 (patch)
tree95a7fbeedc9bbd5e15d9dc23edf385bebf01b324 /src/filesystem/inistream.h
parentbe1c0d9dd0fe27079f7edd89c55f5eeeff0ae00c (diff)
Added IniStream methods to read Vector2f keys.
Diffstat (limited to 'src/filesystem/inistream.h')
-rw-r--r--src/filesystem/inistream.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/filesystem/inistream.h b/src/filesystem/inistream.h
index 8788719..6aba4dc 100644
--- a/src/filesystem/inistream.h
+++ b/src/filesystem/inistream.h
@@ -10,6 +10,7 @@
#include <string>
#include <fstream>
+#include "math/vector2f.h"
#include "math/vector3f.h"
#include "math/color.h"
#include "filesystem/filestream.h"
@@ -80,6 +81,13 @@ public:
bool got_key_long(const char * keylabel, long & l);
+ bool got_key_vector2f(const char * keylabel, math::Vector2f & v);
+
+ /**
+ * @brief special version that reads 1 or 2 arguments
+ **/
+ bool got_key_vector2f_opt(const char * keylabel, math::Vector2f & v);
+
bool got_key_vector3f(const char * keylabel, math::Vector3f & v);
/**