glBindRenderbuffer - OpenGL ES 3.1 Reference Pages

## Name

glBindRenderbuffer — bind a renderbuffer to a renderbuffer target

## C Specification

`void glBindRenderbuffer(` | GLenum target,
| GLuint renderbuffer`)`;

## 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

`glBindRenderbuffer` binds the renderbuffer object with name `renderbuffer` to the renderbuffer target specified by `target`. `target` must be `GL_RENDERBUFFER`. Calling `glBindRenderbuffer` with `renderbuffer` set to a value of zero breaks the existing binding of a renderbuffer object to `target`.

glGenRenderbuffers may be used to generate a set of unused renderbuffer object names.

## Errors

`GL_INVALID_ENUM` is generated if `target` is not `GL_RENDERBUFFER`.

## API Version Support

| OpenGL ES API Version
--- | ---
Function Name | 2.0 | 3.0 | 3.1
glBindRenderbuffer | ✔ | ✔ | ✔

## See Also

glGenRenderbuffers, glDeleteRenderbuffers, glRenderbufferStorage, glRenderbufferStorageMultisample, glIsRenderbuffer

## Copyright

Copyright © 2010-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.