The example pbuffer2 shows how to use background buffer.
