I'm trying to fix the bug due to the landscape mode in my game.
Basically even though the Windows and iPhone version are identical I need to do:
Code: Select all
// landscape mode
#if defined( GR_IPHONE_DEVICE )
core::matrix4 landscapeMatrix;
landscapeMatrix.setRotationDegrees( core::vector3df(0.0, 0.0, -90.0) );
driver->setTransform(video::ETS_PROJECTION, ViewArea.Matrices[video::ETS_PROJECTION]*landscapeMatrix );
#else
driver->setTransform(video::ETS_PROJECTION, ViewArea.Matrices [ video::ETS_PROJECTION ] );
#endif
For reasons specific to my type of game this is now causing issues.
I can't simply swap the values around in glViewport as then I don't fill the screen and I'm not sure mathematically how to fix this.
Does anyone have a solution?
Cheers,
Adversus