coredump
07-23-2001, 12:59 PM
i'm testing a glut app on windows and using glutWarpPointer in my main loop before enteing gutMainLoop works great. but when i move it into my passive mouse func my app comes up blank. actually, not blank. it comes up empty (desktop visible behind).
...
void passive(int x, int y)
{
cursor_pos.x = x;
cursor_pos.y = y;
cursor_pos.x -= 400;
cursor_pos.y -= 300;
glutWarpPointer(cursor_pos.x, cursor_pos.y);
glutPostRedisplay();
}
any thoughts?!? thx in advance.
b
...
void passive(int x, int y)
{
cursor_pos.x = x;
cursor_pos.y = y;
cursor_pos.x -= 400;
cursor_pos.y -= 300;
glutWarpPointer(cursor_pos.x, cursor_pos.y);
glutPostRedisplay();
}
any thoughts?!? thx in advance.
b