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);
Why can't you use static arrays for the objects?
I'd have to create a static array for every model I want to add to my scene.. Then fill it up according to each model...
with a vector it can automatically size itself to whatever the models size is..
But I just realized I don't need to put the stuff in vectors, that would be taking an extra step..
I can just access the data directly with a pointer to the model.