DevIL Documentation | Home | Previous | Next |
The ilutGLScreen function takes a screenshot of the current OpenGL window.
ILboolean ilutGLScreen(
ILvoid
);
None
ilutGLScreen copies the current OpenGL window contents to the current bound image, effectively taking a screenshot. The new image attributes are that of the current OpenGL window's.
ILUT_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
IL_OUT_OF_MEMORY - Could not allocate memory for the new image data.
ilGenImages, ilBindImage, ilutGLScreenie