The simple white triangle demo, here reused as demo for glutWarpPointer. This may help you to make a decent mouse control. The demo locks the mouse pointer in the middle of the window with glutWarpPointer and uses the x offset to rotate the triangle.

Tested on Mac and Linux.


This page is maintained by Ingemar Ragnemalm.