OpenGL – why is GL_ELEMENT_ARRAY_BUFFER for indices?

GL_ELEMENT_ARRAY_BUFFER is used to indicate the buffer you’re presenting contains the indices of each element in the “other” (GL_ARRAY_BUFFER) buffer. So, as a very basic example with vertices only (no other data), if you have an index buffer: {0, 1, 2} {0, 2, 3} and the data buffer contains: {{0, 0, 0}, {1, 0, 0}, {1, … Read more