View Full Version : current color

09-05-2001, 09:37 AM
after a use texture to an object, the current color is changed to some kind color of the texture(I don't know how come). can I change the current color back?

09-05-2001, 10:35 AM
the state of the drawing color stays the same as long as you do not change it, if you want to make a green cube:
//draw cube

set the color you want before drawing.

09-05-2001, 01:17 PM
A little correction: glColor4f may mean not only diffuse or ambient color, it depends on last state of color-material, if GL_COLOR_MATERIAL is enabled, surely.
If you wanna change whole material with _all_ properties use glMaterial functions.

09-05-2001, 05:27 PM
cause gl retains the last state something was set to u need to make sure the colour is the apporopiate one for what u need (most likely white in your case huangzl)
colour is now white