Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which parameter to pass to glGet for getting current framebuffer in OpenGLES iPhone

I know to use glGet to get various parameters. I need to know how to get the current GL_FRAMEBUFFER_OES and get the GLuint type framebuffer id.

I need to use renderToTexture. This will make one of the classes code easier when switching back to normal framebuffer.

like image 984
Rajavanya Subramaniyan Avatar asked May 26 '10 09:05

Rajavanya Subramaniyan


1 Answers

The parameter you’re looking for is GL_FRAMEBUFFER_BINDING_OES.

like image 84
Pivot Avatar answered Oct 09 '22 03:10

Pivot