how to use glMaterialfv()

Hi, I heard that when you enable lighting, in order to set the color of an object, you should use glMaterialfv(), right?
But how does it actually go? What are the arguments I should fill in and what are the things I should take note?

Thanks!will check it out!

…or you can enable GL_COLOR_MATERIAL, and use only glColor() calls for simpler materials.