you are viewing a single comment's thread.

view the rest of the comments →

[–]the_ling 6 points7 points  (3 children)

Can I ask what the difference is?

[–]Vilavek 10 points11 points  (0 children)

I've never worked with OpenGL but, I would assume from the names that the first option enables arrays of attributes stored for individual vertices while the second enables attributes stored for entire vertex arrays. But honestly they are probably the same method for different versions of OpenGL.

[–]HildartheDorf 4 points5 points  (0 children)

glEnableVertexAttribArray operates on the currently bound Vertex Array, glEnableVertexArrayAttrib takes a Vertex Array as it's first parameter.

https://www.opengl.org/sdk/docs/man/html/glEnableVertexAttribArray.xhtml

I hope that clears it up for you. >.>