Skip to main content
GameDev.net gamedev.net
🔒 Locked

glBindFramebufferEXT and glBindRenderbufferEXT

Started by c-mos Jun 11, 2009 at 12:21 PM 3 replies 6.9k views
Original Post
c-mos
c-mos
Hello, i have a short question. There are the two functions glBindFramebufferEXT and glBindRenderbufferEXT. Usually i call glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fboid); to enable rendering to the texture. As you know its possbible to add a renderbuffer to the fbo. So, when a renderbuffer is attached to the fbo and i call glBindFramebufferEXT, then does Rendering happens to the framebuffer and renderbuffer ? Or do I have to call glBindRenderbufferEXT too ? regards, c-mos
zedz
zedz
(depending on the shaders etc setup)
it happens to what ever targets the FBO has, be they renderbuffers, textures whatever
c-mos
c-mos
Hello,
that means when i have created both (fb and rb) i have to bind
the fb and rb whn i want to active offscreen rendering ?

regards,
c-mos
NumberXaero
NumberXaero
// Setup
glBindFramebuffer
glBindRenderBuffer
glRenderBufferStorage
glFramebufferRenderBuffer

// Use
glBindFramebuffer
glDrawBuffers
c-mos
c-mos
ok thank you

best regards,
c-mos

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.