我正在尝试将字符串增强现实框架与 cocos 结合起来作为 3d 渲染器。在设置中,我需要为 String 提供 OpenGL 上下文和帧缓冲区。
stringOGL = [[StringOGL alloc] initWithDelegate: self context: myEAGLContext frameBuffer: myFrameBuffer leftHanded: NO];
我得到这样的上下文:
[[[CCDirector sharedDirector] openGLView] context]
但是如何获得frameBuffer呢?