Reads a .bmp file
| 171 | |
| 172 | //! Reads a .bmp file |
| 173 | ILboolean ilLoadBmp(ILconst_string FileName) { |
| 174 | ILHANDLE BitmapFile; |
| 175 | ILboolean bBitmap = IL_FALSE; |
| 176 | |
| 177 | BitmapFile = iopenr(FileName); |
| 178 | if (BitmapFile == NULL) { |
| 179 | ilSetError(IL_COULD_NOT_OPEN_FILE); |
| 180 | return bBitmap; |
| 181 | } |
| 182 | |
| 183 | bBitmap = ilLoadBmpF(BitmapFile); |
| 184 | icloser(BitmapFile); |
| 185 | |
| 186 | return bBitmap; |
| 187 | } |
| 188 | |
| 189 | |
| 190 | //! Reads an already-opened .bmp file |
no test coverage detected