Getting default frame buffer id from GLKView/GLKit

后端 未结 3 1319
旧时难觅i
旧时难觅i 2021-02-05 13:41

I use GLkit/GLKView in my IOS OpenGL ES 2.0 project to manage default FBO/life cycle of my app.

In desktop OpenGL in order to bind default FBO (the front buffer) I can j

3条回答
  •  不思量自难忘°
    2021-02-05 14:29

    The proper way to bind default framebuffer in GLKit is to call bindDrawable method on GLKview.

    [self bindDrawable] or [myglkview bindDrawable] depending on the context.

提交回复
热议问题