GLAPI/glIsBuffer: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
m Renaming category: 'API Reference 4' to 'Core API Reference'.
m Bot: Adding better formatting.
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
== Function Definition ==
== Function Definition ==


   GLboolean '''glIsBuffer'''(GLuint ''buffer'');
   GLboolean '''glIsBuffer'''(GLuint {{param|buffer}});


; buffer
; buffer
Line 15: Line 15:
== Description ==
== Description ==


'''glIsBuffer''' returns {{code|GL_TRUE}} if ''buffer'' is currently the name of a buffer object. If ''buffer'' is zero, or is a non-zero value that is not currently the name of a buffer object, or if an error occurs, '''glIsBuffer''' returns {{code|GL_FALSE}}.
'''glIsBuffer''' returns {{enum|GL_TRUE}} if {{param|buffer}} is currently the name of a buffer object. If {{param|buffer}} is zero, or is a non-zero value that is not currently the name of a buffer object, or if an error occurs, '''glIsBuffer''' returns {{enum|GL_FALSE}}.


A name returned by [[GLAPI/glGenBuffers|glGenBuffers]], but not yet associated with a buffer object by calling [[GLAPI/glBindBuffer|glBindBuffer]], is not the name of a buffer object.
A name returned by {{apifunc|glGenBuffers}}, but not yet associated with a buffer object by calling {{apifunc|glBindBuffer}}, is not the name of a buffer object.


== See Also ==
== See Also ==


[[GLAPI/glBindBuffer|glBindBuffer]], [[GLAPI/glDeleteBuffers|glDeleteBuffers]], [[GLAPI/glGenBuffers|glGenBuffers]], [[GLAPI/glGet|glGet]]
{{apifunc|glBindBuffer}}, {{apifunc|glDeleteBuffers}}, {{apifunc|glGenBuffers}}, {{apifunc|glGet}}


== Copyright ==
== Copyright ==

Latest revision as of 17:25, 29 April 2012

glIsBuffer
Core in version 4.6
Core since version 1.5

glIsBuffer: determine if a name corresponds to a buffer object

Function Definition

 GLboolean glIsBuffer(GLuint buffer​);
buffer
Specifies a value that may be the name of a buffer object.

Description

glIsBuffer returns GL_TRUE if buffer​ is currently the name of a buffer object. If buffer​ is zero, or is a non-zero value that is not currently the name of a buffer object, or if an error occurs, glIsBuffer returns GL_FALSE.

A name returned by glGenBuffers, but not yet associated with a buffer object by calling glBindBuffer, is not the name of a buffer object.

See Also

glBindBuffer, glDeleteBuffers, glGenBuffers, glGet

Copyright

Copyright © 2005 Addison-Wesley. 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/.