Internal function used to load the raw data.
| 168 | |
| 169 | // Internal function used to load the raw data. |
| 170 | ILboolean iSaveRawInternal() |
| 171 | { |
| 172 | if (iCurImage == NULL) { |
| 173 | ilSetError(IL_ILLEGAL_OPERATION); |
| 174 | return IL_FALSE; |
| 175 | } |
| 176 | |
| 177 | SaveLittleUInt(iCurImage->Width); |
| 178 | SaveLittleUInt(iCurImage->Height); |
| 179 | SaveLittleUInt(iCurImage->Depth); |
| 180 | iputc(iCurImage->Bpp); |
| 181 | iputc(iCurImage->Bpc); |
| 182 | iwrite(iCurImage->Data, 1, iCurImage->SizeOfData); |
| 183 | |
| 184 | return IL_TRUE; |
| 185 | } |
| 186 | |
| 187 | |
| 188 | #endif//IL_NO_RAW |
no test coverage detected