DevIL Documentation Home | Previous | Next

ilIsEnabled, ilIsDisabled

These two functions return whether a mode is disabled or enabled.


ILboolean ilIsEnabled(
  ILenum Mode
);

ILboolean ilIsDisabled( ILenum Mode );


Parameters

Mode
An enum indicating an OpenIL mode. The following values are accepted:

IL_ORIGIN_SET
Whether the origin is set. See ilOriginFunc.
IL_FILE_OVERWRITE
Whether OpenIL is allowed to overwrite existing files when saving.
IL_CONV_PAL
Whether OpenIL should automatically convert palette'd images to truecolour images.

Remarks

ilIsEnabled returns whether the mode indicated by Mode is enabled, and ilIsDisabled returns whether it is disabled.

Error Codes

IL_INVALID_ENUM - Mode was of an invalid value.

See Also

ilEnable, ilDisable, ilOriginFunc, ilutIsEnabled, ilutIsDisabled