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