glColorMaterial()
*
*If only one material property is to be changed, it is more efficient to use glColorMaterial( )
* glColorMaterial( ) causes material to track glColor*( )
•glEnable(GL_COLOR_MATERIAL);
•glColorMaterial(GL_FRONT, GL_DIFFUSE);
•glColor3f(0.2, 0.5, 0.8); // this changes the diffuse material color
•   Draw objects here
•glColorMaterial(GL_FRONT, GL_SPECULAR);
•glColor3f(0.9, 0.0, 0.2); // this changes the specular material color
•   Draw objects here
•glDisable(GL_COLOR_MATERIAL);
Graphics Hardware

Vector/Raster Graphics