0
我可以增加EAGLView的框架(我設置CGRectMake(0,0,320 * 3,480 * 3)1024以上,如果我設置框架1024以上,它在iOS 4.2中正常工作,但在iOS 4.1設備不工作如果我設置1024以上限制在EAGLView
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;
}
p.s.爲什麼你需要一個大於1024的GL視口(iPad的尺寸)?難道你不能在OpenGL中進行任何滾動而不是完成繪製一個只能部分顯示的巨大渲染的GPU工作嗎? – Vagrant 2010-12-01 07:08:27