在设备方向的iPhone上,OpenGL ES原点会发生什么
我试图通过以下方式与定义其支持方向的项目进行交互:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
//making sure that the tour is displayed in landscape
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
我在默认情况下构建了我的程序,我假设它是UIInterfaceOrientationPortrait。现在的问题是看起来OpenGL原点正在移动。所以我的程序依赖于gl源在纵向模式时是左上角,这是所有应用程序的标准,但现在我认为原点已经移动到右上角。
真的吗?
没有找到相关结果
已邀请:
1 个回复
蔬谢窗港