|DevIL Documentation||Home | Previous | Next|
The ilRegisterSave function registers a function to save a new imagetype, extending OpenIL's capabilities.
ILboolean ilRegisterSave( char *Ext, IL_SAVEPROC Save );
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.
IL_OUT_OF_MEMORY - Could not allocate enough memory to use the saving function.
ilRegisterLoad, ilRemoveSave, ilRemoveLoad