2012-01-01 10 views
2

この目的を達成するにはどうすればよいのですか?cコードはiphoneではなくMac向けですか?MacでのOpenGLコンテキスト

EAGLContext *k_context = [[[EAGLContext alloc] 
          initWithAPI:kEAGLRenderingAPIOpenGLES1 
          sharegroup:[[[[CCDirector sharedDirector] openGLView] context] sharegroup]] autorelease];  
[EAGLContext setCurrentContext:k_context]; 

答えて

関連する問題