| 345 | |
| 346 | |
| 347 | ParticleSystem* |
| 348 | LoadParticleSystem(istream& in, const string& texPath) |
| 349 | { |
| 350 | ParticleSystemLoader* loader = new ParticleSystemLoader(in); |
| 351 | if (loader == NULL) |
| 352 | return NULL; |
| 353 | |
| 354 | loader->setTexturePath(texPath); |
| 355 | |
| 356 | ParticleSystem* particleSystem = loader->load(); |
| 357 | if (particleSystem == NULL) |
| 358 | cerr << "Error in particle system file: " << loader->getErrorMessage() << '\n'; |
| 359 | |
| 360 | delete loader; |
| 361 | |
| 362 | return particleSystem; |
| 363 | } |
no test coverage detected