Gambas Documentation - /comp/gb.opengl/gl/bindrenderbufferext

# Gl.BindRenderbufferEXT (gb.opengl)

Static Sub BindRenderbufferEXT ( Target As Integer, Renderbuffer As Integer )

Bind a renderbuffer to a renderbuffer target.

### Parameters

target

  Specifies the renderbuffer target of the binding operation. target must be Gl.RENDERBUFFER.

renderbuffer

  Specifies the name of the renderbuffer object to bind.

### Description

Gl.BindRenderbuffer binds the renderbuffer object with name renderbuffer to the renderbuffer target specified by target. target must be Gl.RENDERBUFFER. renderbuffer is the name of a renderbuffer object previously returned from a call to Gl.GenRenderbuffers, or zero to break the existing binding of a renderbuffer object to target.

### Errors

Gl.INVALID_ENUM is generated if target is not Gl.RENDERBUFFER.

Gl.INVALID_OPERATION is generated if renderbuffer is not zero or the name of a renderbuffer previously returned from a call to Gl.GenRenderbuffers.

### See also

Gl.GenRenderbuffers, Gl.DeleteRenderbuffers, Gl.RenderbufferStorage, Gl.RenderbufferStorageMultisample, Gl.IsRenderbuffer

See original documentation on OpenGL website