Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
We describe how to use framebuffer objects to render to an off-screen buffer (i.e., renderbuffer) or to render to a texture. Before we can use a framebuffer object and specify its attachments, we need to make it the current framebuffer object. The glBindFramebuffer command is used to set the current framebuffer object.
| void | glBindFramebuffer(GLenum target, GLuint framebuffer) |
| target | must be set to GL_FRAMEBUFFER |
| framebuffer | framebuffer object name |