We will start off with a vary basic description of line drawing, get you warmed up with a corresponding exercise,
and then get down to business.
The Software We Will be Using
C++
CodeBlocks IDE -- there are instructions for installation, courtesy of Larry Goetz
here
OpenGL and GLUT -- here
are the instructions for obtaining, installing, creating and bulding GLUT projects.
There seems to be a bit of a bug in CodeBlock's GLUT project template-- there seems to be a weird #define that
CodeBlocks chokes on and then it seems to forget the proper locations for the GLUT library.
I believe you can get around this problem by inserting the line:
#define GLUT_DISABLE_ATEXIT_HACK
immediately before the #include <windows> line (as described in Goetz's documentation).
UPDATE: I tried the system the other day, and this problem seems to be gone – at least with the
latest download of CodeBlocks. Try running the test program first, without the above fix and see
if it works.