Where can I get some example for write ogl image to a file?

Hi:

Can anybody tell me how to write the ogl screen to a file? Or tell me where can I find some example code.

Thanks

well it aint too hard. glreadpixles to get the buffer data. Then use quicktime or jpeglib to save the data. I expect jpeglib has such an example.

gav