I have following code :
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
gluLookAt (0.0, 0.0, 10.0, 0.0, 0.0, 0.0, 0.0, 0.1, 20.0);
glRotatef ((GLfloat) 45, 0.0, 1.0, 0.0);
glRectf(-1,-1,1,1);
the rectangle will be rotated around y-axis. As my result shows, it is still at the center of my window. But why ?
As I know, the function gluLookAt modified MODELVIEW matrix and it issues calls to glTranslate inside, so whtat's the exactly behavior of the above glRotatef call? why the rotation radius is not 10? (10 is the 3rd param passed to gluLookAt)