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();
How do you color bitmaps?
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:
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]
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]
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]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement