Beginner question about vertex arrays in OpenGL
- by MrDatabase
Is there a special order in which vertices are entered into a vertex array? Currently I'm drawing single textures like this:
glBindTexture(GL_TEXTURE_2D, texName);
glVertexPointer(2, GL_FLOAT, 0, vertices);
glTexCoordPointer(2, GL_FLOAT, 0, coordinates);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
where vertices has four "xy pairs". This is working…