I have been scouring the web for a code sample that shows how to use pbuffer with GLUT but I could not find anything...
I am puzzled with the context switching between pbuffer and the rendering window. I guess that I will have to use glutSetWindow to switch between the two rendering surface but I am not too sure about the details.
Can someone explain me how to use a pbuffer with GLUT?