glEnable(GL_COLOR_MATERIAL);
/* affect front face, diffuse reflection properties
*/
glColorMaterial(GL_FRONT, GL_DIFFUSE);
glColor3f(0.0, 0.0, 0.8);
/* draw some objects here in blue */
glColor3f(1.0, 0.0, 0.0);
/* draw some objects here in red */
glDisable(GL_COLOR_MATERIAL);