Initializing

when i first display the window will be reshape function called or do i have to set perspective in init fuction? i use glut

Yes, the reshape should be called immediately following creation of the window.