Hi!

I am trying to rotate my camera around a cube I have at the origin.

I am currently using

gluLookAt (camera_x, camera_y, camera_z, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);

to postion the camera from different points along the 3 axes.

I was told to use:

GLfloat m[16];

glGetFloatv(GL_MODELVIEW_MATRIX,GLfloat m);

glLoadIdentity();

glRotatef(45,0,0,1);

glMultMatrix(m);

In order to Pre-Multiply the rotation, but how does this help me supply parameters to gluLookAt()?

I have looked into this and cannot find the answer.

Also, I know that calls to glGetFloatv() are costly, I just want to do this in the simplist way possible.

Thanks