Difference between revisions of "GLAPI/glBindRenderbuffer"

From OpenGL Wiki
Jump to navigation Jump to search
m (Bot: Adding better formatting.)
m (Bot: Adding better formatting.)
 
Line 27: Line 27:
 
== See Also ==
 
== See Also ==
  
{{apifunc|glGenRenderbuffers}}, {{apifunc|glDeleteRenderbuffers}}, {{apifunc|glRenderbufferStorage}}, {{apifunc|glRenderbufferStorageMultisample}}, {{apifunc|glIsRenderbuffer}}
+
{{apifunc|glGenRenderbuffers}}, {{apifunc|glIsRenderbuffer}}, {{apifunc|glDeleteRenderbuffers}}, {{apifunc|glRenderbufferStorage}}, {{apifunc|glRenderbufferStorageMultisample}}
  
 
== Copyright ==
 
== Copyright ==

Latest revision as of 01:39, 27 September 2012

glBindRenderbuffer
Core in version 4.6
Core since version 3.0

glBindRenderbuffer: bind a renderbuffer to a renderbuffer target

Function Definition

 void glBindRenderbuffer(GLenum target​, GLuint renderbuffer​);
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. renderbuffer​ is the name of a renderbuffer object previously returned from a call to glGenRenderbuffers, 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 glGenRenderbuffers.

See Also

glGenRenderbuffers, glIsRenderbuffer, glDeleteRenderbuffers, glRenderbufferStorage, glRenderbufferStorageMultisample

Copyright

Copyright © 2010 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/.