Jump to content
  • Advertisement


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


How do you color bitmaps?

This topic is 5831 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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:

	glTranslatef(X, Y, Z);
	glColor4ub(Red, Green, Blue, 255);
	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);
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
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]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!