DevIL Documentation Previous | IL | Next

 

ilEnable

 

s OpenGL counterpart glEnable.

 

ILboolean ilEnable(
  ILenum Mode );


Parameters

 
Mode
Mode to enable.


Modes

 
IL_CONV_PAL
When enabled, OpenIL automatically converts palette'd images to their base types, e.g. converting to a bgra image.
IL_FILE_OVERWRITE
If enabled while saving, OpenIL will overwrite existing files, else IL_FILE_ALREADY_EXISTS is set, and the image is not saved.
IL_ORIGIN_SET
When enabled, the origin is specified at an absolute position, and all images loaded or saved adhere to this set origin. For more information, check out ilOriginFunc.

Errors

 
IL_INVALID_ENUM
Invalid Mode value.

See Also

 
ilDisable, ilIsDisabled, ilIsEnabled, ilOriginFunc, ilutDisable, ilutEnable,