Пример #1
0
void drag(int x, int y)
{
   Vec2f newmouse;
   cam.transform_mouse(x, y, newmouse.v);
   //double newmousetime=get_time_in_seconds();

   oldmouse=newmouse;
   //oldmousetime=newmousetime;
}
Пример #2
0
void drag(int x, int y)
{
   Vec2f newmouse;
   cam.transform_mouse(x, y, newmouse.v);
   double newmousetime=get_time_in_seconds();

   Gluvi::camera->drag( x, y );
   
   oldmouse=newmouse;
   oldmousetime=newmousetime;
}
Пример #3
0
void mouse(int button, int state, int x, int y)
{
   Vec2f newmouse;
   cam.transform_mouse(x, y, newmouse.v);
   double newmousetime=get_time_in_seconds();

   oldmouse=newmouse;
   oldmousetime=newmousetime;
   
   Gluvi::camera->click( button, state, x, y );
   
   glutPostRedisplay();
   
}