c - Camera will not move in OpenGL -


i having problems using camera in opengl/freeglut. here code:

http://pastebin.com/vci3bjq5

(for reason, when paste code code feature on site, gives extremely weird output.)

as far can tell should rotate camera when arrow keys pressed - nothing. seems initial camera position wrong. clue why is?

the display function called once. need either set idle function glutidlefunc() or tell glut display function must called again glutpostredisplay().


Comments