I'm very new to Ogre, but I'm already quite excited.
Now I wanted to move the EAGL2ViewController into a Splitviewcontroller. I changed the demo by adding this:
Code: Select all
[self go];
self.vc = [[TestViewController alloc] init];
Ogre::RenderWindow *mWindow = Ogre::Root::getSingleton().getAutoCreatedWindow();
UIWindow *mUIWindow = nil;
mWindow->getCustomAttribute("WINDOW", &mUIWindow);
EAGL2ViewController *EAGL2vc = (EAGL2ViewController *)mUIWindow.rootViewController;
// remove from UIWindow
[EAGL2vc.view removeFromSuperview];
UISplitViewController *splitViewController = [[UISplitViewController alloc] init];
splitViewController.viewControllers = [NSArray arrayWithObjects:vc, EAGL2vc, nil];
mUIWindow.rootViewController = splitViewController;
Unfortunately the result is this:
I feel I know the cause, but so far I was not able to solve it.
OpenGL ES 2 Renderer starts up with the following message:
Code: Select all
GLES2RenderSystem::_createRenderWindow "DemoApp v1.0", 768x1024 fullscreen miscParams: FSAA=0 contentScalingFactor=1 displayFrequency=0 Hz orientation=Landscape RightI'm still not sure about the Orientation Implementation. Do I have to fix something with EAGL2ViewController or do I have to look at Ogre's Orientation Modes?
Help and Pointers would be appreciated.
Thanks!
Martin
