2010-10-27 90 views
1

林正好OpenGL ES的原点iPhone有什么想用一个项目,通过定义其支持的方向接口:我建我以为是UIInterfaceOrientationPortrait默认下我的程序下设备方向

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation { 
//making sure that the tour is displayed in landscape 
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); 
} 

。现在的问题是,似乎OpenGL的起源是移动角落。因此,我的程序取决于在纵向模式下的左上角的左上角,这是所有应用程序的标准,但现在我认为起源已经成为右上角。

这是真的吗?

回答

0

好的,所以我找到了答案。现在我知道这很明显。 对于允许的方向,OpenGL原点相对于电话感知的是电话左上角的位置是固定的。