Reads an .exr file.
| 172 | |
| 173 | //! Reads an .exr file. |
| 174 | ILboolean ilLoadExr(ILconst_string FileName) |
| 175 | { |
| 176 | ILHANDLE ExrFile; |
| 177 | ILboolean bExr = IL_FALSE; |
| 178 | |
| 179 | ExrFile = iopenr(FileName); |
| 180 | if (ExrFile == NULL) { |
| 181 | ilSetError(IL_COULD_NOT_OPEN_FILE); |
| 182 | return bExr; |
| 183 | } |
| 184 | |
| 185 | bExr = ilLoadExrF(ExrFile); |
| 186 | icloser(ExrFile); |
| 187 | |
| 188 | return bExr; |
| 189 | } |
| 190 | |
| 191 | |
| 192 | //! Reads an already-opened .exr file |
nothing calls this directly
no test coverage detected