MCPcopy Create free account
hub / github.com/CelestiaProject/Celestia / LoadParticleSystem

Function LoadParticleSystem

src/celengine/particlesystemfile.cpp:347–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345
346
347ParticleSystem*
348LoadParticleSystem(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}

Callers 1

loadMethod · 0.85

Calls 3

setTexturePathMethod · 0.45
loadMethod · 0.45
getErrorMessageMethod · 0.45

Tested by

no test coverage detected