Popping Irrlicht and getting it to release window on iPhone
Posted: Fri Sep 17, 2010 6:15 am
Hello,
I've integrated Garfinkle's template app into my applicaton, but am having an issue trying to pop the view statck once Irrlicht is initialized. Irrlicht does not seem to want to relinquish control of the window, even if I call device->drop().
Here's my setup:
1) AppDelegate: has the main window, which is the window I am using for Irrlicht.
2) A custom UIViewController main menu as the root controller of a NavigationController
3) Another custom UIViewController that contains a difficulty seletion screen. This gets pushed by the main menu controller (i.e. self.navigationController pushViewController:controller animated:NO]
4) A custom UIViewController that is the game itself. This controller creates my custom UIView class.
5) A custom UIView class where I initialize Irrlicht.
My issue is when I try to pop the UIViewController pushed in step 3, Irrlicht remains visible. I've tried calling driver->drop() just before the pop, but it has no effect.
Anybody else have any insight into this one
Thanks!
I've integrated Garfinkle's template app into my applicaton, but am having an issue trying to pop the view statck once Irrlicht is initialized. Irrlicht does not seem to want to relinquish control of the window, even if I call device->drop().
Here's my setup:
1) AppDelegate: has the main window, which is the window I am using for Irrlicht.
2) A custom UIViewController main menu as the root controller of a NavigationController
3) Another custom UIViewController that contains a difficulty seletion screen. This gets pushed by the main menu controller (i.e. self.navigationController pushViewController:controller animated:NO]
4) A custom UIViewController that is the game itself. This controller creates my custom UIView class.
5) A custom UIView class where I initialize Irrlicht.
My issue is when I try to pop the UIViewController pushed in step 3, Irrlicht remains visible. I've tried calling driver->drop() just before the pop, but it has no effect.
Anybody else have any insight into this one
Thanks!