Discuss the development of new homebrew software, tools and libraries.
Moderators: cheriff, TyRaNiD
-
Yan2Yan
- Posts: 7
- Joined: Sat Nov 29, 2008 8:26 pm
Post
by Yan2Yan »
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: Select all
triS32 PsID0 = triParticleManagerLoadScript( "./data/watersprinkle.txt" );
triParticleManagerRemove(PsID0);
Is it the right way to do ? (with triParticleManagerRemove(PsID0) ?)
Thanks ...
-
Yan2Yan
- Posts: 7
- Joined: Sat Nov 29, 2008 8:26 pm
Post
by Yan2Yan »
Nobody can help me ? :s
-
Ooblik
- Posts: 38
- Joined: Thu Apr 10, 2008 1:47 pm
Post
by Ooblik »
From the sample..
Code: Select all
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.
-
Yan2Yan
- Posts: 7
- Joined: Sat Nov 29, 2008 8:26 pm
Post
by Yan2Yan »
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 )