void glMotionFunc(int x, int y)
{
- view.lookAlt = fmod(view.oldLookAlt +
- (float)((y-view.fstMouseAngle[1])*2*M_PI/glutGet(GLUT_WINDOW_HEIGHT)),
- (float)(2*M_PI));
-
- view.lookAz = fmod(view.oldLookAz +
- (float)((x-view.fstMouseAngle[0])*2*M_PI/glutGet(GLUT_WINDOW_WIDTH)),
- (float)(2*M_PI));
+ view.lookAlt =
+ fmod(view.oldLookAlt +
+ (float)((y-view.fstMouseAngle[1])*2*M_PI/glutGet(GLUT_WINDOW_HEIGHT)),
+ (float)(2*M_PI));
+
+ view.lookAz =
+ fmod(view.oldLookAz +
+ (float)((x-view.fstMouseAngle[0])*2*M_PI/glutGet(GLUT_WINDOW_WIDTH)),
+ (float)(2*M_PI));
updateView();
}