/* This program illustrates the use of the glut library for interfacing with a Window System */ /* The program opens a window, clears it to black, then draws a box at the location of the mouse each time the left button is clicked. The right button exits the program The program also reacts correctly when the window is moved or resized by clearing the new window to black*/ #include /* globals */ #define CELLSIZE 21 GLsizei wh = 504, ww = 504; /* initial window size */ /* GLfloat size = 3.0; /* half side length of square */ GLfloat size; int cell[CELLSIZE][CELLSIZE]; void fillcell() { int i,j,mid; for (i=0; i