Attempts to load an image from a file stream. The file format is specified by the user. ! \param Type Format of this file. Acceptable values are IL_BLP, IL_BMP, IL_CUT, IL_DCX, IL_DDS, IL_DICOM, IL_DOOM, IL_DOOM_FLAT, IL_DPX, IL_EXR, IL_FITS, IL_FTX, IL_GIF, IL_HDR, IL_ICO, IL_ICNS, IL_IFF, IL_IWI, IL_JP2, IL_JPG, IL_LIF, IL_MDL, IL_MNG, IL_MP3, IL_PCD, IL_PCX, IL_PIX, IL_PNG, IL_PNM, IL_PSD,
| 1276 | \param File File stream to load from. |
| 1277 | \return Boolean value of failure or success. Returns IL_FALSE if loading fails.*/ |
| 1278 | ILboolean ILAPIENTRY ilLoadF(ILenum Type, ILHANDLE File) |
| 1279 | { |
| 1280 | if (File == NULL) { |
| 1281 | ilSetError(IL_INVALID_PARAM); |
| 1282 | return IL_FALSE; |
| 1283 | } |
| 1284 | |
| 1285 | if (Type == IL_TYPE_UNKNOWN) |
| 1286 | Type = ilDetermineTypeF(File); |
| 1287 | |
| 1288 | switch (Type) |
| 1289 | { |
| 1290 | case IL_TYPE_UNKNOWN: |
| 1291 | return IL_FALSE; |
| 1292 | |
| 1293 | #ifndef IL_NO_TGA |
| 1294 | case IL_TGA: |
| 1295 | return ilLoadTargaF(File); |
| 1296 | #endif |
| 1297 | |
| 1298 | #ifndef IL_NO_JPG |
| 1299 | #ifndef IL_USE_IJL |
| 1300 | case IL_JPG: |
| 1301 | return ilLoadJpegF(File); |
| 1302 | #endif |
| 1303 | #endif |
| 1304 | |
| 1305 | #ifndef IL_NO_JP2 |
| 1306 | case IL_JP2: |
| 1307 | return ilLoadJp2F(File); |
| 1308 | #endif |
| 1309 | |
| 1310 | #ifndef IL_NO_DDS |
| 1311 | case IL_DDS: |
| 1312 | return ilLoadDdsF(File); |
| 1313 | #endif |
| 1314 | |
| 1315 | #ifndef IL_NO_PNG |
| 1316 | case IL_PNG: |
| 1317 | return ilLoadPngF(File); |
| 1318 | #endif |
| 1319 | |
| 1320 | #ifndef IL_NO_BLP |
| 1321 | case IL_BLP: |
| 1322 | return ilLoadBlpF(File); |
| 1323 | #endif |
| 1324 | |
| 1325 | #ifndef IL_NO_BMP |
| 1326 | case IL_BMP: |
| 1327 | return ilLoadBmpF(File); |
| 1328 | #endif |
| 1329 | |
| 1330 | #ifndef IL_NO_CUT |
| 1331 | case IL_CUT: |
| 1332 | return ilLoadCutF(File); |
| 1333 | #endif |
| 1334 | |
| 1335 | #ifndef IL_NO_DICOM |
nothing calls this directly
no test coverage detected