+void glMouseFunc(int button, int state, int x, int y)
+{
+ if (button == 3 && state == 0)
+ {
+ view.lookRadius += view.lookRadius*0.1;
+ updateView();
+ }
+
+ else if (button == 4 && state == 0)
+ {
+ view.lookRadius -= view.lookRadius*0.1;
+ updateView();
+ }
+
+ else if (button == 0 && state == 0) {
+ view.fstMouseAngle[0] = x;
+ view.fstMouseAngle[1] = y;
+ view.oldLookAz = view.lookAz;
+ view.oldLookAlt = view.lookAlt;
+ }