You can find gluLookAt implementation in Mesa3D source code. http://mesa3d.org/