Archived

This topic is now archived and is closed to further replies.

Shadow1234567890

How do you color bitmaps?

Recommended Posts

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]

Share this post


Link to post
Share on other sites