Shading

You can specify whether you want flat or smooth (Gouraud) shading with the glShadeModel()command.

glShadeModel(GL_FLAT)

will fill in your primitives with the color associated with the last vertex in each primitive.

glShadeModel(GL_SMOOTH)

will linearly interpolate the colors of the vertices.