How to completely remove the scene node and mesh and release

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.

How to completely remove the scene node and mesh and release

Postby comput » Tue May 29, 2012 4:55 pm

I use the following code to load a the mesh and create a scene node and collision queries.

mesh = smgr-> getMesh (meshFile);
node = smgr-> addMeshSceneNode (mesh);

ITriangleSelector * sel = smgr-> createTriangleSelector (node-> getMesh (), node);
node-> setTriangleSelector (sel);
sel-> drop ();



I want to delete the program runs in the scene node and mesh, and fully release the mesh and the memory occupied by the node (need to release the Cache mesh),
May I ask how should I do, thank you.

/ / Remove node
node-> remove ();

/ / How to remove the mesh?
comput
 
Posts: 8
Joined: Wed May 16, 2012 11:23 am

Re: How to completely remove the scene node and mesh and rel

Postby CuteAlien » Tue May 29, 2012 6:39 pm

You have to use the functions in the meshcache: http://irrlicht.sourceforge.net/docu/cl ... cache.html
IRC: #irrlicht on irc.freenode.net
My patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Games with Irrlicht: http://www.irrgheist.com/
News: http://www.reddit.com/r/irrlicht/
User avatar
CuteAlien
Admin
 
Posts: 5364
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany


Return to Beginners Help

Who is online

Users browsing this forum: No registered users and 1 guest