新版glut带滚轮旋转,GLUT_WHEEL_UP和GLUT_WHEEL_DOWN,直接用if判断 void mouse(int button, int state, int x, int y) { if (button == GLUT_WHEEL_UP) {函数体} }