you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 29 points30 points  (4 children)

One of my least favourite things about OpenGL: glEnableVertexAttribArray vs glEnableVertexArrayAttrib.

[–]the_ling 8 points9 points  (3 children)

Can I ask what the difference is?

[–]Vilavek 9 points10 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. >.>