Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
bindFramebuffer
Collapse the table of content
Expand the table of content

bindFramebuffer method

Associates a WebGLFramebuffer object with the gl.FRAMEBUFFER bind target.

IE11

 

Syntax

WebGLRenderingContext.bindFramebuffer(target, framebuffer);

Parameters

target [in]

Type: Number

The target the WebGLFramebuffer object is bound to. Must be gl.FRAMEBUFFER.

framebuffer [in]

Type: WebGLFramebuffer

The WebGLFramebuffer object.

Return value

This method does not return a value.

Remarks

The currently bound framebuffer is the target of drawing operations. If the framebuffer is null, the context reverts to the default framebuffer.

WebGL errorDescription
gl.INVALID_ENUMIf target isn't gl.FRAMEBUFFER.

 

See also

WebGLRenderingContext

 

 

Show:
© 2015 Microsoft