문제

Can I increase the frame of EAGLView(I am setting CGRectMake(0,0,320*3,480*3) above 1024, If i set frame above 1024 it works correctly in iOS 4.2 but in iOS 4.1 devices its not working if i set frame above 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?

UPDATED: I created a sample openGL project and i replaced didFinishLaunchingWithOptions with following code.... It works well in simulator but It is not displaying anything on devices < 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;
}
도움이 되었습니까?

해결책

Could it be that the iOS 4.2 device is a more recent one than the iOS 4.1 device? More modern devices (iPhone 3GS & 4, iPad, newer iPod Touch) use a more advanced GPU which supports the OpenGL ES2.0 pipeline and larger textures (2048x2048).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top