fix scope in mouse (prlly wrong in all examples), extra cout

This commit is contained in:
Alec Jacobson
2015-05-18 13:39:57 -04:00
parent a258a42b0c
commit 64da4e6aaf
+1 -9
View File
@@ -248,14 +248,6 @@ void draw_scene(const igl::Camera & v_camera,
//glLoadIdentity();
//glMultMatrixd(v_camera.inverse().matrix().data());
if(!render_to_texture)
{
Vector3d win;
igl::project(Vector3d(0,0,0),win);
cout<<win.transpose()<<endl;
}
for(int c = 0;c<(int)s.cameras.size();c++)
{
auto & camera = s.cameras[c];
@@ -498,6 +490,7 @@ void mouse(int glutButton, int glutState, int mouse_x, int mouse_y)
break;
}
break;
}
#ifdef GLUT_WHEEL_DOWN
// Scroll down
case GLUT_WHEEL_DOWN:
@@ -530,7 +523,6 @@ void mouse(int glutButton, int glutState, int mouse_x, int mouse_y)
break;
}
#endif
}
}
glutPostRedisplay();
}