So, what you need is something like

view_setup(view,matrix);

which calculates the view arc and the clip_far plane from the matrix - is that right?