I was reading through the Redbook today, I want to implement vertex arrays into my program, but the problem is, the Vertex array implementation in the Redbook uses static arrays...
This is no good!
How can I use vertex arrays in my program but keep them dynamic by using an STL container or something similar?
colors and vertices are the names of the static arrays, do I just simply put the name of the vector in for colors and vertices?
glColorPointer (3, GL_FLOAT, 0, colors);
glVertexPointer (2, GL_INT, 0, vertices);