Deleting Objects?
-
TunaBreeze
- Posts: 8
- Joined: Fri Apr 27, 2007 1:20 am
Deleting Objects?
Okay, I noticed in all the examples you create something with your device (example - a GUI object). If I want to discontinue using said GUI object do I just delete the pointer to the object or is there something I need to do instead.
It really depends on what exactly you are talking about. If you have a pointer to an IGUIElement derived type, you would call remove() on it. Same for ISceneNode derived types. Depending on how you got the object pointer, you might need to call drop() on that pointer when you're done with it.
I don't believe that there is any method in Irrlicht that gives you a pointer to something that you should be calling delete on.
Travis
I don't believe that there is any method in Irrlicht that gives you a pointer to something that you should be calling delete on.
Travis