passing Vertex +Face list to opengl?

I have a Vertex List(consisting of x,y,z values for every Vertex) and a Face List(consisting of A,B C,specifieing 3 Vertices from Vertex List).Now the pseudo code for my pogram to Draw these Faces looks like this:

for(i=0;i<=Number of faces;i++ {
glVertex3f(coords of A from Face[i]);
glVertex3f(coords of B from Face[i]);
glVertex3f(coords of C from Face[i]);
I there another,faster possibility to send such a Face List to OpenGl,than using this “not very smart” loop?
Perhaps there is a Function like glFaceList() or something like this?

Take a look at the glVertexPointer and glDrawArrays calls. They are what you are looking for.


Thank you for this link Nate,it helped me a lot!!!