| View previous topic :: View next topic |
| Author |
Message |
Yan2Yan
Joined: 29 Nov 2008 Posts: 7
|
Posted: Sat Nov 29, 2008 8:40 pm Post subject: [triEngine] How to remove a particle system ? |
|
|
Hi everybody !
I've a problem when I try to remove a particle system with the triEngine (psp crashes).
For example, this code doesn't work :
| Code: | triS32 PsID0 = triParticleManagerLoadScript( "./data/watersprinkle.txt" );
triParticleManagerRemove(PsID0); |
Is it the right way to do ? (with triParticleManagerRemove(PsID0) ?)
Thanks ... |
|
| Back to top |
|
 |
Yan2Yan
Joined: 29 Nov 2008 Posts: 7
|
Posted: Sun Nov 30, 2008 11:45 pm Post subject: |
|
|
| Nobody can help me ? :s |
|
| Back to top |
|
 |
Ooblik
Joined: 10 Apr 2008 Posts: 38
|
Posted: Thu Dec 04, 2008 9:00 am Post subject: |
|
|
From the sample..
| Code: |
triTextureUnload( partSys[1].textureID );
triTextureUnload( partSys[2].textureID );
triParticleManagerDestroy();
triFree( partSys );
triFree( partEm );
|
triFree( particleSystem ); // It makes sense I guess.. not sure if thats what your looking for. |
|
| Back to top |
|
 |
Yan2Yan
Joined: 29 Nov 2008 Posts: 7
|
Posted: Sat Dec 06, 2008 3:42 am Post subject: |
|
|
Thank you Ooblik, but that's not exactly what I'm looking for.
Indeed, I just want to know why triParticleManagerRemove() doesn't work by me, but it's not very important (there are other ways to do :P ) |
|
| Back to top |
|
 |
|