Hi am trying to rotate a camera around my scene I have, the camera position is in this function:
Code :void reshape(int width, int height) { glViewport(0, 0, (GLsizei) width, (GLsizei) height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); /*glOrtho(-(float) 2.0*CUBE_SIZE, (float) 2.0*CUBE_SIZE, -(float) 2.0*CUBE_SIZE, (float) 2.0*CUBE_SIZE, zm, (float)40.0*CUBE_SIZE);*/ glFrustum(-(float) 2.0*CUBE_SIZE, (float) 2.0*CUBE_SIZE, -(float) 2.0*CUBE_SIZE, (float) 2.0*CUBE_SIZE, zm, (float)40.0*CUBE_SIZE); glMatrixMode(GL_MODELVIEW); }
How can I rotate the camera but still stay looking at the center of my scene?



