Saving Rendered Image to File

This may be a really easy thing to do, but how would you save a rendered OpenGL scene to a file, preferably GIF/JPEG - although BMP would do…

Thanks,
Steve

use glReadPixels an example is on my site url profile) under the BGR extension