DevIL Documentation Home | Previous | Next

ilOriginFunc

The ilOriginFunc sets the default origin to be used when loading images.


ILboolean ilOriginFunc(
  ILenum Mode
);

Parameters

Mode
An enum specifying the origin to be used. Accepted values are:

IL_ORIGIN_LOWER_LEFT
The origin is in the lower left of the image.
IL_ORIGIN_UPPER_LEFT
The origin is in the upper left of the image.

Remarks

ilOriginFunc sets the origin to be used when loading all images, so that any image with a different origin will be flipped to have the set origin. This behaviour is actually disabled by default but can be enabled using ilEnable with the IL_ORIGIN_SET parameter.

Error Codes

IL_INVALID_PARAM - Mode was of an invalid value.

See Also

ilLoad, ilLoadF, ilLoadL, ilLoadImage