DevIL Documentation Home | Previous | Next

ilRegisterSave

The ilRegisterSave function registers a function to save a new imagetype, extending OpenIL's capabilities.


ILboolean ilRegisterSave(
  char *Ext,
  IL_SAVEPROC Save
);

Parameters

Ext
Extension of the image type to save.
Load
Pointer to a saving function.

Remarks

ilRegisterSave allows the user to register functions for use by OpenIL, when saving unknown image types. The user can also override the default internal saving functions by passing their extension in Ext when using ilSaveImage. ilRegisterSave allows the user to use their own saving functions while using OpenIL's capabilities, or to extend OpenIL when it does not support a specific image format.

Error Codes

IL_OUT_OF_MEMORY - Could not allocate enough memory to use the saving function.

See Also

ilRegisterLoad, ilRemoveSave, ilRemoveLoad