DevIL Documentation Previous | IL | Next

 

ilSetInteger

 

The ilSetInteger function sets the value of a selected mode. it's the ilGetInteger's counterpart

 

ILvoid ilSetInteger(
  ILenum Mode, ILint Param );


Parameters

 
Mode
The mode value to be modified.
Param
The value to set the mode with.


Mode

 
IL_BMP_RLE
Tells DevIL to save .bmp files with RLE-compressed data.
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_SGI_RLE
Tells DevIL to save .sgi files with RLE-compressed data.
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_TGA_RLE
Tells DevIL to save .tga files with RLE-compressed data.

Errors

 
IL_INVALID_ENUM
Mode was of an invalid value.
IL_INVALID_PARAM
Param was not in range.

See Also

 
ilBindImage, ilGenImages, ilLoadImage, ilSave, ilSaveImage, ilSetFileCallbacks,