• Advertisement
Sign in to follow this  

current fbo

This topic is 3350 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi how can i get ID of the in use frame buffer object wich bound with glBindFrameBufferEXT function ( i need this for binding previous fbo in my engine after calling "draw" function of an entity)

Share this post


Link to post
Share on other sites
Advertisement
I think you are looking for
glGetIntegerv(GL_FRAMEBUFFER_BINDING_EXT).

If it returns 0, then it refers to the window-system-provided (default) framebuffer.
If non-zero value is returned, then it refers to the currently bound FBO.

Other tokens added for FBO extension are;
GL_RENDERBUFFER_BINDING_EXT
GL_MAX_COLOR_ATTACHMENTS_EXT
GL_MAX_RENDERBUFFER_SIZE_EXT

Also, please check FBO specific interfaces to get info of the bound FBO;
glGetFramebufferAttachmentParameterivEXT()
glGetRenderbufferParameterivEXT()

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement