DevIL Documentation Home | Previous | Next

ilRegisterLoad

The ilRegisterLoad function registers a function to load a new imagetype, extending OpenIL's capabilities.


ILboolean ilRegisterLoad(
  char *Ext,
  IL_LOADPROC Load
);

Parameters

Ext
Extension of the image type to load.
Load
Pointer to a loading function.

Remarks

ilRegisterLoad allows the user to register functions for use by OpenIL, when loading unknown image types. The user can also override the default internal loading functions by passing their extension in Ext when using ilLoadImage. ilRegisterLoad allows the user to use their own loading 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 loading function.

See Also

ilRegisterSave, ilRemoveLoad, ilRemoveSave