screenshot_opengl, a C++ code which shows how a program using the OpenGL graphics library can save a screenshot of the graphics being displayed.
The information on this web page is distributed under the MIT license.
screenshot_opengl is available in a C version and a C++ version.
opengl_test, a C++ code which uses opengl() to display graphic images on the screen;