MyGUI ignores orientation

Problems building or running the engine, queries about how to use features etc.
Post Reply
Tobse
Kobold
Posts: 26
Joined: Tue Apr 10, 2007 12:21 am

MyGUI ignores orientation

Post by Tobse »

I hope questions to MyGUI are ok here.

Since my problem http://www.ogre3d.org/forums/viewtopic.php?f=2&t=92949 is not solved and I use the workaround using the orientation feature of ogre, I need to use orientation for MyGUI too. And there is code at MyGUI_OgreRenderManager.cpp:331

Code: Select all

	Ogre::OrientationMode orient = mWindow->getViewport(mActiveViewport)->getOrientationMode();
	mRenderSystem->_setProjectionMatrix(Ogre::Matrix4::IDENTITY * Ogre::Quaternion(Ogre::Degree(orient * 90.f), Ogre::Vector3::UNIT_Z));


that should do it, but whatever I change here, it has no effect for the layout. Any ideas?
Post Reply