///////////////////////////////////////////////////////////////////////////////////////////////
| 54 | } |
| 55 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 56 | MStatus Particles::writeToXML( ParamList& params ) |
| 57 | { |
| 58 | params.outParticles << "<particles frames=\"" << nFrames << "\" tracks=\"" << particleTracks.size() << "\" >\n"; |
| 59 | for ( uint nTemp = 0; nTemp < particleTracks.size(); ++nTemp ) |
| 60 | { |
| 61 | const SParticle &particle = particleTracks[nTemp]; |
| 62 | params.outParticles << "\t<particle startFrame=\"" << particle.nStartTime << "\" endFrame=\"" << particle.nEndTime << "\" >\n"; |
| 63 | writeTrackToXML( params.outParticles, particle.pos, "position" ); |
| 64 | writeTrackToXML( params.outParticles, particle.rotation, "rotation" ); |
| 65 | writeTrackToXML( params.outParticles, particle.scale, "scale" ); |
| 66 | writeTrackToXML( params.outParticles, particle.color, "color" ); |
| 67 | writeTrackToXML( params.outParticles, particle.sprite, "sprite" ); |
| 68 | params.outParticles << "\t</particle>\n"; |
| 69 | } |
| 70 | params.outParticles << "</particles>\n"; |
| 71 | return MS::kSuccess; |
| 72 | } |
| 73 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 74 | void Particles::clear() |
| 75 | { |
no test coverage detected