glBindFramebuffer Function

Syntax

GL_APICALL void GL_APIENTRY glBindFramebuffer(
     GLenum target,
     GLuint framebuffer
);

Arguments

Name Description
in target Bind target
in framebuffer Framebuffer object

Return Values

No values are returned.

Description

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_ENUMThe target argument was set to an invalid value.
GL_OUT_OF_MEMORYFailed to allocate the management region.
GL_INVALID_OPERATIONThis function was called without any command-list objects bound.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL