|
ilLoad can be used much in the same way ilLoadImage is used, except with ilLoad, it is possible to force OpenIL to load a file as a specific image format, no matter what the extension.
| ILboolean ilLoad( ILenum Type, char * FileName );
|
Parameters | - Type
- Format Specification
- FileName
- File to load the image
|
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_PSP
- Load a Paint Shop Pro 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
See Also
|