PDA

View Full Version : how to use glMaterialfv()



IAstudent
04-25-2004, 05:26 PM
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?

chowe6685
04-25-2004, 05:32 PM
http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=glMaterial&btnG=Search

IAstudent
04-25-2004, 05:43 PM
Thanks!will check it out!

ZbuffeR
04-27-2004, 12:07 AM
...or you can enable GL_COLOR_MATERIAL, and use only glColor() calls for simpler materials.