我是否可以增加EAGLView的帧(我将CGRectMake(0,320*3,480*3)设置在1024之上,如果我将帧设置在1024之上,则它在iOS 4.2中正确工作,但在iOS 4.1设备中,如果我将帧设置在1024之上,它就不能工作。
DO i need to add any extra code for 4.1?
Why the textures are not displaying in IOS 4.1 devices if i set the frame of EAGLView above 1024?更新了:我创建了一个示例openGL项目,用以下代码替换了didFinishLaunchingWithOptions .它在模拟器中工作得很好,但是它没有在设备上显示任何< IOS 4.2。
#define VIEWSIZEFACTOR 3 // our EAGLView nees to be multiple of 320X480 to maintain aspect ratio.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
CGRect rect = [[UIScreen mainScreen] bounds];
[self.viewController.view setFrame:CGRectMake(-500, -500, rect.size.width*VIEWSIZEFACTOR, rect.size.height*VIEWSIZEFACTOR)]; //CHANGESIZE
[self.window addSubview:self.viewController.view];
return YES;
}发布于 2010-12-01 07:01:23
难道iOS 4.2设备是比iOS 4.1设备新的设备吗?更现代的设备(iPhone 3GS & 4,iPad,更新的iPod Touch)使用更先进的GPU,它支持OpenGL ES2.0流水线和更大的纹理(2048x2048)。
https://stackoverflow.com/questions/4321916
复制相似问题