forked from BSVino/docs.gl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
glBindRenderbuffer.xhtml
28 lines (28 loc) · 4.02 KB
/
glBindRenderbuffer.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div class="refentry"><a id="glBindRenderbuffer"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>glBindRenderbuffer — bind a renderbuffer to a renderbuffer target</p></div><div class="refsynopsisdiv"><h2>C Specification</h2><div class="funcsynopsis"><table class="funcprototype-table" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <strong class="fsfunc">glBindRenderbuffer</strong>(</code></td><td>GLenum <var class="pdparam">target</var>, </td></tr><tr><td> </td><td>GLuint <var class="pdparam">renderbuffer</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a id="parameters"></a><h2>Parameters</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>target</code></em></span></dt><dd><p>
Specifies the renderbuffer target of the binding operation. <em class="parameter"><code>target</code></em> must be <code class="constant">GL_RENDERBUFFER</code>.
</p></dd><dt><span class="term"><em class="parameter"><code>renderbuffer</code></em></span></dt><dd><p>
Specifies the name of the renderbuffer object to bind.
</p></dd></dl></div></div><div class="refsect1"><a id="description"></a><h2>Description</h2><p>
<code class="function">glBindRenderbuffer</code> binds the renderbuffer object with name <em class="parameter"><code>renderbuffer</code></em> to the renderbuffer target specified
by <em class="parameter"><code>target</code></em>. <em class="parameter"><code>target</code></em> must be <code class="constant">GL_RENDERBUFFER</code>. <em class="parameter"><code>renderbuffer</code></em>
is the name of a renderbuffer object previously returned from a call to <a class="citerefentry" href="glGenRenderbuffers"><span class="citerefentry"><span class="refentrytitle">glGenRenderbuffers</span></span></a>,
or zero to break the existing binding of a renderbuffer object to <em class="parameter"><code>target</code></em>.
</p></div><div class="refsect1"><a id="errors"></a><h2>Errors</h2><p>
<code class="constant">GL_INVALID_ENUM</code> is generated if <em class="parameter"><code>target</code></em> is not <code class="constant">GL_RENDERBUFFER</code>.
</p><p>
<code class="constant">GL_INVALID_OPERATION</code> is generated if <em class="parameter"><code>renderbuffer</code></em> is not zero or the name of a renderbuffer
previously returned from a call to <a class="citerefentry" href="glGenRenderbuffers"><span class="citerefentry"><span class="refentrytitle">glGenRenderbuffers</span></span></a>.
</p></div>
{$pipelinestall}{$examples}
<div class="refsect1"><a id="seealso"></a><h2>See Also</h2><p>
<a class="citerefentry" href="glGenRenderbuffers"><span class="citerefentry"><span class="refentrytitle">glGenRenderbuffers</span></span></a>,
<a class="citerefentry" href="glDeleteRenderbuffers"><span class="citerefentry"><span class="refentrytitle">glDeleteRenderbuffers</span></span></a>,
<a class="citerefentry" href="glRenderbufferStorage"><span class="citerefentry"><span class="refentrytitle">glRenderbufferStorage</span></span></a>,
<a class="citerefentry" href="glRenderbufferStorageMultisample"><span class="citerefentry"><span class="refentrytitle">glRenderbufferStorageMultisample</span></span></a>,
<a class="citerefentry" href="glIsRenderbuffer"><span class="citerefentry"><span class="refentrytitle">glIsRenderbuffer</span></span></a>
</p></div><div class="refsect1"><div id="Copyright"><h2>Copyright</h2><p>
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.
<a class="ulink" href="https://opencontent.org/openpub/" target="_top">https://opencontent.org/openpub/</a>.
</p></div></div></div>