glutPassiveMotionFunc

I have a 3D wire cube in my scene. I want to zoom in and out on the cube by moving the mouse backwards and forwards. How would I implement that with glutPassiveFunction.

thanks,
mike