/* ** curves.c ** ** Simple curve drawing program. ** ** The following keyboard commands are used to control the ** program: ** ** q - Quit the program ** c - Clear the screen ** e - Erase the curves ** b - Draw Bezier curves ** */ #include void keyboard(unsigned char key, int x, int y); #define MAX_CPTS 25 /* Fixed maximum number of control points */ GLfloat cpts[MAX_CPTS][3]; int ncpts = 0; static int width = 500, height = 500; /* Window width and height */ void drawCurves() { int i; /* Draw the curves */ for(i=0; i