DevIL Documentation Previous | IL | Next

 

ilRegisterLoad

 

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

 

ILboolean ilRegisterLoad(
  char * Ext, Load IL_LOADPROC );


Parameters

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


Errors

 
IL_OUT_OF_MEMORY
Could not allocate enough memory for the image data.

See Also

 
ilRegisterSave, ilRemoveLoad, ilRemoveSave,