GL_APICALL void GL_APIENTRY glBindFramebuffer(
GLenum target,
GLuint framebuffer
);
| Name | Description | |
|---|---|---|
| in | target | Bind target |
| in | framebuffer | Framebuffer object |
Binds a framebuffer object to the current bind target.
Set target to GL_FRAMEBUFFER.
Set framebuffer to a framebuffer object generated by glGenFramebuffers. If you specify a nonexistent framebuffer object, a new framebuffer object of that name is created simultaneously. A value of 0 is bound by default.
A color buffer, depth buffer, and stencil buffer are attached by default to the default object 0 on POD. Nothing is attached to any of the attachment points on default object 0 on the production hardware.
This function generates the following errors.
| GL_INVALID_ENUM | The target argument was set to an invalid value. |
|---|---|
| GL_OUT_OF_MEMORY | Failed to allocate the management region. |
| GL_INVALID_OPERATION | This function was called without any command-list objects bound. |
CONFIDENTIAL