Drawing Color - glColor
The glColor function sets the curent color that is used for all vertices drawn after the command.
A point
A point has only one vertex -- any color we indicate for that vertex will be the color of that point.
A line
A line has two vertices (each can have different color). Color of the line depends on the shading model. (Smooth transition from one color to the next)
A point
A point has only one vertex -- any color we indicate for that vertex will be the color of that point.
A line
A line has two vertices (each can have different color). Color of the line depends on the shading model. (Smooth transition from one color to the next)

0 Comments:
Post a Comment
<< Home