2010-10-27 64 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原點相對於電話感知的是電話左上角的位置是固定的。