forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[triEngine] How to remove a particle system ?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Yan2Yan



Joined: 29 Nov 2008
Posts: 7

PostPosted: Sat Nov 29, 2008 8:40 pm    Post subject: [triEngine] How to remove a particle system ? Reply with quote

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
View user's profile Send private message
Yan2Yan



Joined: 29 Nov 2008
Posts: 7

PostPosted: Sun Nov 30, 2008 11:45 pm    Post subject: Reply with quote

Nobody can help me ? :s
Back to top
View user's profile Send private message
Ooblik



Joined: 10 Apr 2008
Posts: 38

PostPosted: Thu Dec 04, 2008 9:00 am    Post subject: Reply with quote

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
View user's profile Send private message
Yan2Yan



Joined: 29 Nov 2008
Posts: 7

PostPosted: Sat Dec 06, 2008 3:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group