DevIL Documentation Home | Previous | Next

ilutGLScreen

The ilutGLScreen function takes a screenshot of the current OpenGL window.


ILboolean ilutGLScreen(
  ILvoid
);

Parameters

None

Remarks

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.

Error Codes

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.

See Also

ilGenImages, ilBindImage, ilutGLScreenie