Getting the Frame Buffer

I need to know how to get the frame buffer for effects like heat haze and glass that have refractions in them.