Getting default frame buffer id from GLKView/GLKit

后端 未结 3 1381
旧时难觅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:18

    Perhaps you can get the "current" framebuffer ID just after your bindDrawable call, by calling something like:

    GLint defaultFBO;
    glGetIntegerv(GL_FRAMEBUFFER_BINDING_OES, &defaultFBO);
    

提交回复
热议问题