DevIL Documentation Home | Previous | Next

ilRegisterFormat

The ilRegisterFormat function registers the current image's format.


ILvoid ilRegisterFormat(
  ILenum Format
);

Parameters

Format
The format that the registered image is in. Accepted values are:
IL_RGB
IL_RGBA
IL_BGR
IL_BGRA
IL_LUMINANCE
IL_COLOR_INDEX

Remarks

ilRegisterFormat tells OpenIL what format the current registered image is in. This function is to be used from within functions that have been registered via ilRegisterLoad.

Error Codes

None

See Also

ilRegisterLoad, ilRegisterType, ilRegisterOrigin, ilRegisterPal