2012-01-01 5 views
2

어떻게이 목표를 수행 할 수 있습니까 - c 코드는 Mac 용이지만 iPhone 용입니까?Mac에서 OpenGL 컨텍스트

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

답변

관련 문제