Interaction with Mouse in OpenGL (Part 2)

In fact, transformations are relative to the object. You need to keep track of your transforms and move things as appropriate for the current state of the model view matrix.…