DevIL Documentation Home | Previous | Next

ilSetInteger

The ilSetInteger function sets the value of a selected mode.

ILvoid ilSetInteger(
  ILenum Mode,  ILint Param);


Parameters

Mode
The mode value to be returned. The following values are accepted:
IL_TGA_CREATE_STAMP
Sets whether .tga files are saved with a "postage stamp" in their extension fields (IL_TRUE or IL_FALSE accepted).
IL_JPG_QUALITY
Sets the quality .jpg files are saved at. Valid values are in the 0-99 range, with 99 being the best quality.
IL_PNG_INTERLACE
Tells DevIL to save .png files interlaced.
IL_TGA_RLE
Tells DevIL to save .tga files with RLE-compressed data.
IL_BMP_RLE
Tells DevIL to save .bmp files with RLE-compressed data.
IL_SGI_RLE
Tells DevIL to save .sgi files with RLE-compressed data.
Param
The value to set the mode with.


Remarks

ilSetInteger is ilGetInteger's counterpart.

Error Codes

IL_INVALID_ENUM - Mode was an invalid enum.
IL_INVALID_PARAM - Param was not in range.

See Also

ilGetBoolean, ilGetBooleanv, ilGetInteger, ilGetIntegerv