Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

bindRenderbuffer method

Binds a WebGLRenderbuffer object to be used for rendering.

IE11

 

Syntax

WebGLRenderingContext.bindRenderbuffer(target, renderbuffer);

Parameters

target [in]

Type: Number

Set to gl.RENDERBUFFER.

renderbuffer [in]

Type: WebGLRenderbuffer

The name of the new WebGLRenderbuffer.

Return value

This method does not return a value.

Remarks

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

 

Setting this to a null value effectively unbinds any previously bound WebGLRenderbuffer.

When a buffer is bound to a target, the previously bound Renderbuffer for that target is automatically unbound.

See also

WebGLRenderingContext

 

 

Show:
© 2015 Microsoft