How do you color bitmaps?

Started by
0 comments, last by Shadow1234567890 21 years, 5 months ago
How do you color bitmaps (like lesson09 of nehe) Aren't you supposed to use glcolor4ub(r,g,b,a) with blending? BCuz that doesn't work (and yes i have it initialized correctly) EDIT:
    
	glBindTexture(GL_TEXTURE_2D, MoonTexture);		//THIS IS ACTUALLY THE PARTICLE TEXTURE

	glEnable(GL_BLEND);	
	glTranslatef(X, Y, Z);
	glColor4ub(Red, Green, Blue, 255);
	glBegin(GL_QUADS);
	glTexCoord2f(0.0f, 0.0f);	glVertex3f(-.5f,-.5f, -30.0f);
	glTexCoord2f(1.0f, 0.0f);	glVertex3f( .5f,-.5f, -30.0f);
	glTexCoord2f(1.0f, 1.0f);	glVertex3f( .5f, .5f, -30.0f);
	glTexCoord2f(0.0f, 1.0f);	glVertex3f(-.5f, .5f, -30.0f);
	glEnd();
    
Why doesn't that work? Red, Green, and Blue are defined as GLubyte EDIT: Doh, it was because of my lights, NEVERMIND tee hee (and I thought I was stumped!) [edited by - Shadow1234567890 on November 3, 2002 7:27:31 PM]
What do you mean ''Someday become a programmer?'' I'm a programmer right now!
Advertisement
Did you set the blending mode with glBlendFunc()?
What are you trying to accomplish with the texture being at full opacity?

I don't have a signature

[edited by - Brian Jones on November 3, 2002 11:44:01 PM]
I don't have a signature

This topic is closed to new replies.

Advertisement