Release world resources

Posted By: monotonic

Release world resources - 04/02/11 17:04

Hi All,

I was wondering how you go about releasing all resources loaded into the world. Is there a command which I can call to release them ready for loading another world? Or do I have to manually dispose of them?

Thanks in advance.
Posted By: painkiller

Re: Release world resources - 04/02/11 17:14

when you call level_load, all resources from previous level are purged
Posted By: SchokoKeks

Re: Release world resources - 04/02/11 17:51

true, and you can use level_load(NULL); to release them, like when you want to go back to a 2d menu.
Posted By: monotonic

Re: Release world resources - 04/02/11 18:06

Excellent thank you guys.
© 2024 lite-C Forums