Hi!
I searched a lot around the Internet but I can't figure out how to change the color of a texture.
I'm drawing a sun using the texture file (.sgi) my professor gave me, if I set the emission color of the sphere to white this is the color I obtain:
Click image for larger version. 

Name:	screenshot.jpg 
Views:	122 
Size:	7.2 KB 
ID:	963

So far the only thing I managed to do is to set the emission color to red so the sun now is dark red, but is there something else I can do to make the Sun more yellow? The green component keeps coming out!
Click image for larger version. 

Name:	screenshot_red.jpg 
Views:	133 
Size:	5.8 KB 
ID:	964

Here is the sun code:
Code :
{
	static GLfloat sunRed[]= {1.0, 0.0, 0.0, 1.0};
	static GLfloat white[] = {1.0,1.0,1.0,1.0};
	GLUquadric* a = gluNewQuadric();
 
	/* save attributes */
	glPushAttrib(GL_ALL_ATTRIB_BITS);
	glEnable(GL_TEXTURE_2D); /* enable 2D texture mapping */
 
	glPushMatrix();
		glTranslatef(500, 50, 0);
 
		glMaterialfv(GL_FRONT, GL_EMISSION, sunRed);
		glBindTexture(GL_TEXTURE_2D, g_textureArray[0]);
 
		gluQuadricTexture(a, GL_TRUE);
 
		gluSphere(a, 100, 24, 24);
	glPopMatrix();
 
	glDisable(GL_TEXTURE_2D); /* disable 2D texture mapping */
 
	glPopAttrib();
}

Thanks