How to rotate screen using mouse motion without using gluLookAt()
Just use glRotate!
glRotatef( world_x, 1.0, 0.0, 0.0);
glRotatef( world_y, 0.0, 1.0, 0.0);
glRotatef( world_z, 0.0, 0.0, 1.0);
// then draw everything else.
Originally posted by valmian:
How to rotate screen using mouse motion without using gluLookAt()
I know that but how to do the code for the mouse?