DevIL Documentation Previous | IL | Next

 

ilLoadL

 

ilLoadL loads an image from a memory lump

 

ILboolean ilLoadL(
  ILenum Type, ILvoid * Lump, ILuint Size );


Parameters

 
Type
Image format
Lump
Lump Address
Size
Lump size


Types

 
IL_BMP
Load the image as a Microsoft bitmap (.bmp).
IL_CUT
Load the image as a .cut image.
IL_DDS
Load a DirectDraw Surface (.dds) image.
IL_DOOM
Load the image as a Doom texture.
IL_DOOM_FLAT
Load the image as a Doom flat (floor).
IL_GIF
Load a Graphics Interchange Format (.gif) file.
IL_ICO
Load the image as a Microsoft icon (.ico).
IL_JASC_PAL
Load the file into the current image's palette as a Paint Shop Pro (Jasc) palette.
IL_JPG
Load the image as a Jpeg (.jpg).
IL_LIF
Load an Homeworld image.
IL_MDL
Load an Half-Life model file (.mdl).
IL_MNG
Load a Multiple Network Graphics (.mng).
IL_PCD
Load the image as a .pcd image.
IL_PCX
Load the image as a PCX.
IL_PIC
Load the image as a .pic image.
IL_PIX
Load an Alias | Wavefront .pix file.
IL_PNG
Load a Portable Network Graphics (.png) image.
IL_PNM
Load a Portable AnyMap (.pbm, .pgm or .ppm).
IL_PSD
Load a PhotoShop (.psd) file.
IL_PXR
Load a Pxrar (.pxr) file.
IL_RAW
Load the image as raw data with a 13-byte header.
IL_SGI
Load an SGI (.bw, .rgb, .rgba or .sgi).
IL_TGA
Load a TrueVision Targa.
IL_TIF
Load a TIFF (.tif or .tiff) image.
IL_TYPE_UNKNOWN
Tells OpenIL to try to determine the type of image present in FileName, File or Lump.
IL_WAL
Load a Quake .wal texture.
IL_XPM
Load an .xpm file.

Errors

 
IL_COULD_NOT_OPEN_FILE
The file pointed to by FileName could not be opened. Either the file does not exist or is in use by another process.
IL_ILLEGAL_FILE_VALUE
The file could not be loaded due to an invalid value present.
IL_ILLEGAL_OPERATION
There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
IL_INVALID_ENUM
Type was of an invalid value.
IL_INVALID_FILE_HEADER
The file had an invalid header and could not be loaded.
IL_INVALID_PARAM
Lump or Size were NULL.
IL_LIB_JPEG_ERROR
Error occurred when trying to load a jpeg.
IL_LIB_PNG_ERROR
Error occurred when trying to load a png.
IL_OUT_OF_MEMORY
Could not allocate enough memory for the image data.

See Also

 
ilBindImage, ilGenImages, ilLoadImage, ilSave, ilSaveImage, ilSetFileCallbacks,