Hello, every one.
I have a question on destroying windows. Please help me.
Initially, I created some windows.
But when some event occured, I do not need those windows anymore.
In order to release memory.
Should i recursively call the destroy() methods of every sub-windows,
or just call the destroy() of the root window of the sub-tree?
[Solved]Should I destroy all sub-windows recursively?
Moderators: CEGUI MVP, CEGUI Team
[Solved]Should I destroy all sub-windows recursively?
Last edited by yllfever on Tue Mar 17, 2009 03:03, edited 1 time in total.
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
Hi,
Cegui will take care or deleting child- and automatic windows, so deleting the 'root' is enough. Make sure to destroy it through the WindowManager; don't call 'delete' on the window.
HTH.
Cegui will take care or deleting child- and automatic windows, so deleting the 'root' is enough. Make sure to destroy it through the WindowManager; don't call 'delete' on the window.
HTH.
Check out my released snake game using Cegui!
Who is online
Users browsing this forum: No registered users and 9 guests