02/21/2002
15-462 Graphics I
29
Drawing the Control Points
•
To illustrate Bezier curve
void display()
{ ...
glPointSize(5.0);
glColor3f(1.0, 1.0, 0.0);
glBegin(GL_POINTS);
for (i = 0; i < 4; i++)
glVertex3fv(&ctrlpoints[i][0]);
glEnd();
glFlush();
}