Skip to content

Commit

Permalink
Update glVertexAttribPointer.xhtml
Browse files Browse the repository at this point in the history
Some interesting things I found out while porting to the core context.
  • Loading branch information
BSVino committed Feb 19, 2015
1 parent 73ef26c commit 679fa8d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions gl3/glVertexAttribPointer.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,18 @@
is <code class="constant">GL_INT_2_10_10_10_REV</code> or <code class="constant">GL_UNSIGNED_INT_2_10_10_10_REV</code>
and <em class="parameter"><code>size</code></em> is not 4 or <code class="constant">GL_BGRA</code>.</p><p><code class="constant">GL_INVALID_OPERATION</code> is generated by <code class="function">glVertexAttribPointer</code>
if <em class="parameter"><code>size</code></em> is <code class="constant">GL_BGRA</code> and <em class="parameter"><code>noramlized</code></em>
is <code class="constant">GL_FALSE</code>.</p><p><code class="constant">GL_INVALID_OPERATION</code> is generated if zero is bound to the
is <code class="constant">GL_FALSE</code>.</p>
<p><code class="constant">GL_INVALID_OPERATION</code> is generated if zero is bound to the
<code class="constant">GL_ARRAY_BUFFER</code> buffer object binding point and the
<em class="parameter"><code>pointer</code></em> argument is not <code class="constant">NULL</code>.</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="associatedgets"></a><h2>Associated Gets</h2><p><a href="glGet"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a>
<em class="parameter"><code>pointer</code></em> argument is not <code class="constant">NULL</code>.
(Note: In the core context, the old method of passing glVertexAttribPointer and glDrawArrays pointers
to mesh data in main memory is no longer allowed. You must create a Vertex Buffer Object and fill it
with your mesh data.)
</p>
<p><code class="constant">GL_INVALID_OPERATION</code> is generated in the core context if there is
no Vertex Array Object bound.
</p>
</div><div class="refsect1" lang="en" xml:lang="en"><a id="associatedgets"></a><h2>Associated Gets</h2><p><a href="glGet"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a>
with argument <code class="constant">GL_MAX_VERTEX_ATTRIBS</code></p><p><a href="glGetVertexAttrib"><span class="citerefentry"><span class="refentrytitle">glGetVertexAttrib</span></span></a>
with arguments <em class="parameter"><code>index</code></em> and <code class="constant">GL_VERTEX_ATTRIB_ARRAY_ENABLED</code></p><p><a href="glGetVertexAttrib"><span class="citerefentry"><span class="refentrytitle">glGetVertexAttrib</span></span></a>
with arguments <em class="parameter"><code>index</code></em> and <code class="constant">GL_VERTEX_ATTRIB_ARRAY_SIZE</code></p><p><a href="glGetVertexAttrib"><span class="citerefentry"><span class="refentrytitle">glGetVertexAttrib</span></span></a>
Expand Down Expand Up @@ -110,4 +119,4 @@
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="http://opencontent.org/openpub/" target="_top">http://opencontent.org/openpub/</a>.
</p></div></div></div>
</p></div></div></div>

0 comments on commit 679fa8d

Please sign in to comment.