ios uiinterfaceorientation problem

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
zhengxianfu
Posts: 16
Joined: Thu Apr 05, 2012 9:33 am

ios uiinterfaceorientation problem

Post by zhengxianfu »

my game should use landscape ,but after i set pinfo.list ,supported device orientations in Summary, override shouldautorotationtointerfaceorientation method , rotation simulator using HARDWARE "rotation left". nothing happened.

I search ,maybe something related CGAffineTransformMakeRotation.


Did i miss somethings ?
Thanks in advance.
zhengxianfu
Posts: 16
Joined: Thu Apr 05, 2012 9:33 am

Re: ios uiinterfaceorientation problem

Post by zhengxianfu »

maybe this is one of approach:

http://www.rtsoft.com/forums/archive/in ... -5706.html

Code: Select all

  
glRotatef( 90, 0.0f, 0.0f, 1.0f );
glTranslatef( 0.0f, -320.0f, 0.0f ); // the rotation takes it offscreen and this brings it back on so the origin is in the right place
 
:(
Here is problem:
1、all touch method, must translate the position ,because of glrotate
2、the size seems to be 320*320 ,that means ,only 320 of 480 bits display at screen,rest of screen is white.


ANY ideas?
Post Reply