/*
 *    MATH 217 - Assignment 4.   
 *        By. Cyrus Jam (cjam@cs.ucsd.edu)
 *    The base windows code and tutorial on how to do the
 *    spherical mapping provided by nehe.  http://nehe.gamedev.net/
 */

=========================
README
=========================

INTRO:
I completed all parts of the assignment.  I also added spherically mapping to the torus which can be toggle on and off.

PROBLEMS:
The only problem that I have encountered was that Fullscreen mode does not work on the computers found at APM 2144.   However, it does work on my home computer.  I suggest only running this demo in windowed mode.  

KEYBOARD CONTROLS:

Note:  a few of the keyboard controls are different then the assignment specs because I was not able to figure out how to differentiate between capital and lower case using the windows specification.  

1 -> toggle the first light off and on
2 -> toggle the second light off and on
3 -> toggle lighting off and on
l -> toggle local modes on and off 
f -> toggle between flat shading and smooth shading 
b -> toggle background on and off
E -> Toggle Spherical mapping On/Off
R -> Reset the torus back to its original orientation with no velocity
P -> Toggle between rendering in filled polygon mode, and in wireframe mode
L -> Toggle Lighting On/Off (note: the lighting is still not entire done at this point)
W -> Increase the number of wraps.
Z -> Decrease the number of wraps.
N -> Increase the number of segments per wrap
M -> Decrease the number of segments per wrap
Q -> Toggle between drawing quadrangles and triangles. 
S -> Single step the animation
A -> Start the animation running again without stopping
F1-> Toggle Fullscreen mode.  (note: this can cause the demo to crash depending on the system.
0 -> Zero the velocity of the torus, but leave its position fixed

ADDITIONAL WORK:
Spherical mapping has been added to the torus demo.  This uses the images found in the Data folder. I used a nice demo found on nehe.gamedev.net to implement this.