What’s the difference between glDrawArrays and glDrawElements ?
Can anyone help me?
Thanx,
Giuseppe
What’s the difference between glDrawArrays and glDrawElements ?
Can anyone help me?
Thanx,
Giuseppe
glDrawArrays submits the vertices in linear order, as they are stored in the vertex arrays.
With glDrawElements you have to supply an index buffer. Indices allow you to submit the vertices in any order, and to reuse vertices that are shared between triangles.
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.