0

I'm a new for OpenGL ES with GLKit, I want to create two FBO for my program. but I don't know how to bind the default FBO, anyone who can help me ?

Any help or advice would be much appreciated.

smith
  • 29
  • 5
  • in fact, I hope to create another FBO, and doing some thing in this two FBO, I want to bind different FBO. – smith May 02 '14 at 03:13

1 Answers1

0

this problem is basic, you just need add one line like this:

[((GLKView *) self.view) bindDrawable];   

this method can reset to GLKit default FBO

罗大柚
  • 260
  • 3
  • 10
  • of course, you can get the sample code in github: https://github.com/datenwolf/codesamples/tree/master/samples/OpenGL/minimalfbo – 罗大柚 May 02 '14 at 04:02