DevIL Documentation Home | Previous | Next

ilutGLScreenie

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


ILboolean ilutGLScreenie(
  ILvoid
);

Parameters

None

Remarks

ilutGLScreen copies the current OpenGL window contents to a temporary image, effectively taking a screenshot. The screenshot image is then saved to disk as screen0.tga - screen127.tga (the lowest name it can find). This is just a convenience function that uses ilutGLScreen.

Error Codes

ILUT_COULD_NOT_OPEN_FILE - All possible files already exist.
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, ilutGLScreen