windows - freeGLUT - Moving camera with mouse? -


so, here again. how freeglut camera rotate mouse (without being dragged)? i've got simple concepts down:

  1. move mouse middle of window when moved. because user runs out of window without this, camera doesn't move when cursor out of window.

  2. use glutpassivemotionfunc() utilize mouse movement.

any ideas on how heck this? cannot find examples don't require user click & drag move camera.


Comments