0

EAGLView(CGRectMake(0,0,320 * 3,480 * 3)を1024より上に設定しています)のフレームを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を次のコードに置き換えました。シミュレーターでは正常に機能しますが、IOS4.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;
}
4

1 に答える 1

2

iOS4.2デバイスはiOS4.1デバイスよりも新しいものである可能性がありますか?最新のデバイス(iPhone 3GS&4、iPad、新しいiPod Touch)は、OpenGL ES2.0パイプラインとより大きなテクスチャ(2048x2048)をサポートするより高度なGPUを使用しています。

于 2010-12-01T07:01:23.970 に答える