If you just mean "take a scene rendered by OpenGL and save it as an image," then it's pretty simple. You need to read the scene using glReadPixels (), and then convert this data to an image format such as PNG ( http://www.opengl.org/resources/faq/technical/miscellaneous.htm ).
There are also more effective ways to achieve this, such as using FBO s. Instead of rendering the scene directly in the framebuffer, you can render it with a texture via FBO and then render that texture as a full-screen quad. You can take this texture and save it to a file (e.g. glGetTexImage ).
source share