! Read int from a string. */
| 66 | |
| 67 | /*! Read int from a string. */ |
| 68 | static inline int getInt(const char*& token) { |
| 69 | token += strspn(token, " \t"); |
| 70 | int n = atoi(token); |
| 71 | token += strcspn(token, " \t\r"); |
| 72 | return n; |
| 73 | } |
| 74 | |
| 75 | /*! Read Vec2f from a string. */ |
| 76 | static inline Vec2f getVec2f(const char*& token) { |