DevIL Documentation Previous | IL | Next

 

ilOriginFunc

 

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.

 

ILboolean ilOriginFunc(
  ILenum Mode );


Parameters

 
Mode
Specifies the origin to be used


Modes

 
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.

Errors

 
IL_INVALID_PARAM
Mode was of an invalid value.

See Also

 
ilLoad, ilLoadF, ilLoadImage, ilLoadL,