page 436 remove line #include <GL/gl.h>
page 437 line 6, add u: gluOrtho2D
page 438 remove line #include <GL/gl.h>
page 441 remove line #include <GL/gl.h>
page 440-441 GLUT 3.0 requires a display function. We can add the line
glutDisplayFunc(display)
to main
before glutMainLoop
and the line
void display(){}
before main
.
page 436 last line change 0.0 to 1.0: glClearColor(0.0, 0.0, 0.0, 1.0);
page 440 middle of page change 0.0 t0 1.0: glClearColor(0.0, 0.0, 0.0, 1.0);
page 442 fifth line from bottom change 0.0 t0 1.0: glClearColor(0.0, 0.0, 0.0, 1.0);
page 443 two thirds down page, change 0.0 t0 1.0: glClearColor(0.0, 0.0, 0.0, 1.0);
page 448 line 10 change 0.0 t0 1.0: glClearColor(0.0, 0.0, 0.0, 1.0);
page 450 remove line #include <GL/gl.h>
page 453 remove line #include <GL/gl.h>
page 455 middle of page change -10.0 to 1.0 in glPerspective
page 456 remove line #include <GL/gl.h>
page 456 middle of page, change 4 to 3: point[3]
page 460 remove line #include <GL/gl.h>
page 460 remove line #include <GL/glu.h>
page 464 remove line #include <GL/gl.h>
page 464 remove line #include <GL/glu.h>
page 471 remove line #include <GL/gl.h>
page 479 remove line #include <GL/gl.h>
The change & to && has to be made in
the following places:
page 440 in function mouse
(BUTTON && state
)
pages 444 and 445, once (BUTTON && state
) and seven times
(&& count
)
page 452 first three lines (BUTTON && state
)
page 454 three times in function mouse
: (BUTTON && state
)
page 462 twice in function mouse
: (BUTTON && state
)
page 468 twice in function mouse
: (BUTTON && state
)
page 450 first two lines: change / at beginning to /*
page 456 third line in A.6: change / at beginning to /*