Consider this sequence of calls glColor3f 00 10 00 glColor3f

Consider this sequence of calls: glColor3f (0.0, 1.0, 0.0); glColor3f(1.0, 0.0, 0.0); glVertcx2i (1, 1); glVertex2i (2, 2,2); What color is the vertex (1, 1. 1)? What color is the vertex (2, 2, 2)?

Solution

glColor3f(0.0,1.0,0.0);
This will set the color to green
glColor3f(1.0,0.0,0.0);
This will set the color to red.
glVertex2i(1,1);
recently color is set to Red. So this will be displayed in RED color
glVertex2i(2,2,2);
This also displayed in RED color

 Consider this sequence of calls: glColor3f (0.0, 1.0, 0.0); glColor3f(1.0, 0.0, 0.0); glVertcx2i (1, 1); glVertex2i (2, 2,2); What color is the vertex (1, 1. 1

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site