I’ve been reading for the last 2 weeks or so, ran into a question… (no, I’m not trying to make an “engine”. )
I have created a vertex array, and been able to render it. No sweat. BUT, how would I go about doing multiple vertex arrays?
One would go like:
glVertexPointer(3, GL_FLOAT, 0, &torusVerts);
glDrawElements(GL_TRIANGLES, 1728, GL_UNSIGNED_INT, torusFaces);
Could I then make a new vertex pointer to a different array, and then immediately render another array?
Or would I do it all within the enable/disable pair?
If I do multiple vertex arrays inside the pair, how do they know which two arrays (one for vertices, one for faces) coorespond to each other?