| 222 | |
| 223 | |
| 224 | static bool checkArgCount(int reqCount, int count, |
| 225 | const std::string& type, int lineNum) { |
| 226 | if (count < (reqCount + 1)) { |
| 227 | // FIXME -- lineNum is wrong because of the way the file is parsed |
| 228 | printf("ERROR: not enough parameters for \"%s\" at line %i\n", |
| 229 | type.c_str(), lineNum + 1); |
| 230 | return false; |
| 231 | } |
| 232 | return true; |
| 233 | } |
| 234 | |
| 235 | |
| 236 | void readOBJ(CModel& model, std::string file) { |