Sign in to follow this  
Pooya65

current fbo

Recommended Posts

Pooya65    127
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
songho    268
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this