Original Post
Dear friends,
Let me directly to the point.
When I used the above function with the third parameter as
GL_DECAL, then everytime when I used a glColor() function,
it didn''t work. The color in effect actually was from the
texture ( i think so).
Thank you in advance.
By the way , the following is extracted from my source code:
...
glBindTexture(GL_TEXTURE_2D, texture[loop]);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL);
...
// enable color tracking
glEnable(GL_COLOR_MATERIAL);
// Set material properites to follow glColor values
glColorMaterial(GL_FRONT, GL_AMBIENT_AND_DIFFUSE);
...