how can i get these three componets through this function call?
you can use
GLfloat matrix[16];
glGetFloatv (GL_MODELVIEW_MATRIX, matrix);
to fetch the matrix created via gluLookAt
and then extra the pitch, yaw, roll from this (search the web if you don’t know how to do this)