PDA

View Full Version : Rotating screen using mouse, glut



valmian
12-13-2002, 11:32 AM
How to rotate screen using mouse motion without using gluLookAt()

nexusone
12-13-2002, 12:22 PM
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()

valmian
12-14-2002, 07:52 AM
I know that but how to do the code for the mouse?