In OpenGL I\'m trying to rotate a camera around a point, with camera being distance r from the point and facing the point when it rotates. In other words, I want the camera
You need to either:
or:
gluLookAt
(*) rotation functions normally rotate about the origin. To rotate around another point P you have to:
P