|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Game Programming: OpenGL - color blending
------------------------------------------------------------
GameProgrammer.Com: Game Programming: OpenGL - color
blending
------------------------------------------------------------
By Derold on Wednesday, April 19, 2000 - 01:40 am:
what am I doing wrong;
glBegin(GL_TRIANGLES);// Drawing Using Triangles
glColor3f(0.0f,1.0f,0.0f);// Set The Color
To green
glVertex3f( 0.0f, 1.0f, 0.0f);// Top
glColor3f(1.0f,0.0f,0.0f);// Set The Color To red
glVertex3f(-1.0f,-1.0f, 0.0f);// Bottom Left
glColor3f(0.0f,0.0f,1.0f);// Set The Color To
Blue
glVertex3f( 1.0f,-1.0f, 0.0f);// Bottom Right
glEnd(); // Finished Drawing The Triangle
when this is compiled everything works ecept red. It appears
black, I've tried it on the other points with the same
results, I've even tried it n the background. I know this
is prob basic for you'all but it's perty advanced for me.
thanks.
------------------------------------------------------------
DO NOT REPLY TO THIS MESSAGE! It is an automatic e-mail
notification message from the discussion board indicating
that a new message was posted. If you do not wish to
receive further e-mail notification messages from this
discussion board, edit your user or moderator profile to
turn off the e-mail notification option.
Use this link to go directly to the discussion:
http://gameprogrammer.com/cgi-bin/comm/gameprogrammer/discus/show.pl?6/17
|
|