Archived

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

crossbrigade2000

change color of polygon

Recommended Posts

Go to nehe.gamedev.net and check out the lessons section. You'll find out how to change colors of polygons there, and even how to texture them.
Every tutorial comes with full source too!
To change the color of a polygon you could simply use the glColor function
glColor4f( Red, Green, Blue, Alpha );
every value is in range from 0.0 (lowest) up to 1.0 (highest)
or, if you prefer the 0-255 range version, just use
glColor4ub( Red, Green, Blue, Alpha );

- Patrik Willbo

The Lord says He can get me out of this mess, but He's pretty sure you're fucked.
- Stephen (Braveheart)


[edited by - Willbo on April 29, 2003 12:54:08 PM]

Share this post


Link to post
Share on other sites