In this program (cubev.c), the track-ball code is contained in
the functions:
myGlutMotion
myGlutMouse
myGlutIdle

Note that in the display routine, you must reset the
gluLookAt call.

You must init these routine as shown in the main() function.

Also, you need globals to keep state of the current eye location.