Read this:
* Vertex Rendering (OpenGL Wiki)

It'll answer a lot of your questions.