DevIL Documentation Previous | IL | Next

 

ilRegisterFormat

 

ilRegisterFormat tells OpenIL what format the current registered image is in. This function is to be used from within functions that have been registered via ilRegisterLoad

 

ILvoid ilRegisterFormat(
  ILenum Format );


Parameters

 
Format
The format that the registered image is in.


Formats

 
IL_BGR
IL_BGRA
IL_COLOR_INDEX
IL_LUMINANCE
IL_LUMINANCE_ALPHA
IL_RGB
IL_RGBA

Errors

 
IL_OUT_OF_MEMORY
Could not allocate enough memory for the image data.

See Also

 
ilRegisterLoad, ilRegisterOrigin, ilRegisterPal, ilRegisterType,