Hi,
This is my first post,
I am trying to render a surface using
glVertexPointer(3, GL_FLOAT, 0, gridVerticesStrip);
glColorPointer(4, GL_FLOAT, 0, gridColors);
glDrawArrays(GL_TRIANGLE_STRIP, 0, gridVerticesStripLength);
I wonder if I have to arrange colors inside gridColors the same order as gridVerticesStrip (when using GL_TRIANGLE_STRIP) or is ok if I just put them like when rendering using GL_TRIANGLES
Above code is very simplified, but I am rendering a large surface so I have a for loop doing glDrawArrays and I wonder If I have to do the same with colors?.
Thanks.