I have a 3d object that I wish to be able to rotate around in 3d. The easiest way is to directly translate X and Y mouse motion to rotation about the Y and X axes, but if t
In my Computer Graphics course, we were given the following code which allowed us not to reinvent the wheel.
trackball.h
trackball.c