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