/
glIsBuffer.xhtml
22 lines (22 loc) · 2.7 KB
/
glIsBuffer.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<div class="refentry" lang="en" xml:lang="en"><a id="glIsBuffer"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>glIsBuffer — determine if a name corresponds to a buffer object</p></div><div class="refsynopsisdiv"><h2>C Specification</h2><div class="funcsynopsis"><p><code class="funcdef">GLboolean <b class="fsfunc">glIsBuffer</b>(</code>GLuint <var class="pdparam">buffer</var><code>)</code>;</p></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="parameters"></a><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><em class="parameter"><code>buffer</code></em></span></dt><dd><p>
Specifies a value that may be the name of a buffer object.
</p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="description"></a><h2>Description</h2><p>
<code class="function">glIsBuffer</code> returns <code class="constant">GL_TRUE</code> if <em class="parameter"><code>buffer</code></em> is currently the name of a buffer object.
If <em class="parameter"><code>buffer</code></em> is zero, or is a non-zero value that is not currently the
name of a buffer object, or if an error occurs, <code class="function">glIsBuffer</code> returns <code class="constant">GL_FALSE</code>.
</p><p>
A name returned by <a href="glGenBuffers"><span class="citerefentry"><span class="refentrytitle">glGenBuffers</span></span></a>, but not yet associated with a buffer object
by calling <a href="glBindBuffer"><span class="citerefentry"><span class="refentrytitle">glBindBuffer</span></span></a>, is not the name of a buffer object.
</p></div>
{$pipelinestall}{$examples}
<div class="refsect1" lang="en" xml:lang="en"><a id="seealso"></a><h2>See Also</h2><p>
<a href="glBindBuffer"><span class="citerefentry"><span class="refentrytitle">glBindBuffer</span></span></a>,
<a href="glDeleteBuffers"><span class="citerefentry"><span class="refentrytitle">glDeleteBuffers</span></span></a>,
<a href="glGenBuffers"><span class="citerefentry"><span class="refentrytitle">glGenBuffers</span></span></a>,
<a href="glGet"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a>
</p></div><div class="refsect1" lang="en" xml:lang="en"><div id="Copyright"><h2>Copyright</h2><p>
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.
<a href="https://opencontent.org/openpub/" target="_top">https://opencontent.org/openpub/</a>.
</p></div></div></div>