PDA

View Full Version : glMaterial with GL_COLOR_INDEXES



tidaldus
10-18-2009, 11:06 AM
Hi, I have a question related to the function glMaterial (http://www.opengl.org/sdk/docs/man/xhtml/glMaterial.xml) when one gives it the parameter GL_COLOR_INDEXES. I have right understood that we can use glMaterialfv ou glMaterialiv to provide 3 floats or 3 ints, but what I would like to know is if internally the parameters for GL_COLOR_INDEXES are 3 ints or 3 floats ? thanks

punky
10-19-2009, 12:11 AM
read this:
http://msdn.microsoft.com/en-us/library/ms970762.aspx