# E:/DevIL/src-IL/include/il_files.h File Reference

`#include <IL/il.h>`

Go to the source code of this file.

## Defines

#define | __FILES_EXTERN extern

## Functions

__FILES_EXTERN void ILAPIENTRY | iPreserveReadFuncs (void)
__FILES_EXTERN void ILAPIENTRY | iRestoreReadFuncs (void)
__FILES_EXTERN void ILAPIENTRY | iPreserveWriteFuncs (void)
__FILES_EXTERN void ILAPIENTRY | iRestoreWriteFuncs (void)
__FILES_EXTERN ILHANDLE ILAPIENTRY | iDefaultOpen (ILconst_string FileName)
__FILES_EXTERN void ILAPIENTRY | iDefaultClose (ILHANDLE Handle)
__FILES_EXTERN ILint ILAPIENTRY | iDefaultGetc (ILHANDLE Handle)
__FILES_EXTERN ILint ILAPIENTRY | iDefaultRead (void *Buffer, ILuint Size, ILuint Number, ILHANDLE Handle)
__FILES_EXTERN ILint ILAPIENTRY | iDefaultSeekR (ILHANDLE Handle, ILint Offset, ILint Mode)
__FILES_EXTERN ILint ILAPIENTRY | iDefaultSeekW (ILHANDLE Handle, ILint Offset, ILint Mode)
__FILES_EXTERN ILint ILAPIENTRY | iDefaultTellR (ILHANDLE Handle)
__FILES_EXTERN ILint ILAPIENTRY | iDefaultTellW (ILHANDLE Handle)
__FILES_EXTERN ILint ILAPIENTRY | iDefaultPutc (ILubyte Char, ILHANDLE Handle)
__FILES_EXTERN ILint ILAPIENTRY | iDefaultWrite (const void *Buffer, ILuint Size, ILuint Number, ILHANDLE Handle)
__FILES_EXTERN void | iSetInputFile (ILHANDLE File)
__FILES_EXTERN void | iSetInputLump (const void *Lump, ILuint Size)
__FILES_EXTERN | ILboolean (ILAPIENTRY *ieof)(void)
__FILES_EXTERN | ILHANDLE (ILAPIENTRY *iopenr)(ILconst_string)
__FILES_EXTERN | void (ILAPIENTRY *icloser)(ILHANDLE)
__FILES_EXTERN | ILint (ILAPIENTRY *igetc)(void)
__FILES_EXTERN | ILuint (ILAPIENTRY *iread)(void *Buffer
__FILES_EXTERN void | iSetOutputFile (ILHANDLE File)
__FILES_EXTERN void | iSetOutputLump (void *Lump, ILuint Size)
__FILES_EXTERN void | iSetOutputFake (void)
__FILES_EXTERN ILHANDLE ILAPIENTRY | iGetFile (void)
__FILES_EXTERN const ILubyte *ILAPIENTRY | iGetLump (void)
__FILES_EXTERN ILuint ILAPIENTRY | ilprintf (const char *,...)
__FILES_EXTERN void | ipad (ILuint NumZeros)
__FILES_EXTERN ILboolean | iPreCache (ILuint Size)
__FILES_EXTERN void | iUnCache (void)

## Variables

__FILES_EXTERN fEofProc | EofProc
__FILES_EXTERN fGetcProc | GetcProc
__FILES_EXTERN fReadProc | ReadProc
__FILES_EXTERN fSeekRProc | SeekRProc
__FILES_EXTERN fSeekWProc | SeekWProc
__FILES_EXTERN fTellRProc | TellRProc
__FILES_EXTERN fTellWProc | TellWProc
__FILES_EXTERN fPutcProc | PutcProc
__FILES_EXTERN fWriteProc | WriteProc
__FILES_EXTERN ILuint | Size
__FILES_EXTERN ILuint ILuint | Number
__FILES_EXTERN ILuint | Mode

## Define Documentation

#define __FILES_EXTERN extern

## Function Documentation

__FILES_EXTERN void ILAPIENTRY iDefaultClose | ( | ILHANDLE | Handle | ) |

__FILES_EXTERN ILint ILAPIENTRY iDefaultGetc | ( | ILHANDLE | Handle | ) |

Referenced by ilResetRead().

__FILES_EXTERN ILHANDLE ILAPIENTRY iDefaultOpen | ( | ILconst_string | FileName | ) |

__FILES_EXTERN ILint ILAPIENTRY iDefaultPutc | ( | ILubyte | Char,
|  | ILHANDLE | Handle |
| ) |  |  |

Referenced by ilResetWrite().

__FILES_EXTERN ILint ILAPIENTRY iDefaultRead | ( | void * | Buffer,
|  | ILuint | Size,
|  | ILuint | Number,
|  | ILHANDLE | Handle |
| ) |  |  |

Referenced by ilResetRead().

__FILES_EXTERN ILint ILAPIENTRY iDefaultSeekR | ( | ILHANDLE | Handle,
|  | ILint | Offset,
|  | ILint | Mode |
| ) |  |  |

__FILES_EXTERN ILint ILAPIENTRY iDefaultSeekW | ( | ILHANDLE | Handle,
|  | ILint | Offset,
|  | ILint | Mode |
| ) |  |  |

__FILES_EXTERN ILint ILAPIENTRY iDefaultTellR | ( | ILHANDLE | Handle | ) |

__FILES_EXTERN ILint ILAPIENTRY iDefaultTellW | ( | ILHANDLE | Handle | ) |

__FILES_EXTERN ILint ILAPIENTRY iDefaultWrite | ( | const void * | Buffer,
|  | ILuint | Size,
|  | ILuint | Number,
|  | ILHANDLE | Handle |
| ) |  |  |

Referenced by ilResetWrite().

__FILES_EXTERN ILHANDLE ILAPIENTRY iGetFile | ( | void |  | ) |

Referenced by iLoadSunInternal(), and iLoadWbmpInternal().

__FILES_EXTERN const ILubyte* ILAPIENTRY iGetLump | ( | void |  | ) |

__FILES_EXTERN ILboolean | ( | ILAPIENTRY * | ieof | ) |

__FILES_EXTERN ILHANDLE | ( | ILAPIENTRY * | iopenr | ) | const

__FILES_EXTERN ILint | ( | ILAPIENTRY * | igetc | ) |

__FILES_EXTERN ILuint ILAPIENTRY ilprintf | ( | const char * | ,
|  |  | ... |
| ) |  |  |

Referenced by iSavePnmInternal(), and RGBE_WriteHeader().

__FILES_EXTERN ILuint | ( | ILAPIENTRY * | iread | ) |

__FILES_EXTERN void ipad | ( | ILuint | NumZeros | ) |

Referenced by iSaveTargaInternal().

__FILES_EXTERN ILboolean iPreCache | ( | ILuint | Size | ) |

Referenced by iGetcFile(), iLoadHdrInternal(), ilReadUncompBmp(), iReadFile(), iReadNonRleSgi(), iUncompressDcx(), iUncompressPcx(), iUncompressSmall(), and iUncompressTgaData().

__FILES_EXTERN void ILAPIENTRY iPreserveReadFuncs | ( | void |  | ) |

__FILES_EXTERN void ILAPIENTRY iPreserveWriteFuncs | ( | void |  | ) |

__FILES_EXTERN void ILAPIENTRY iRestoreReadFuncs | ( | void |  | ) |

__FILES_EXTERN void ILAPIENTRY iRestoreWriteFuncs | ( | void |  | ) |

__FILES_EXTERN void iSetInputFile | ( | ILHANDLE | File | ) |

Referenced by ilIsValidBmpF(), ilIsValidDcxF(), ilIsValidDdsF(), ilIsValidExrF(), ilIsValidGifF(), ilIsValidHdrF(), ilIsValidIcnsF(), ilIsValidJp2F(), ilIsValidJpegF(), ilIsValidLifF(), ilIsValidMdlF(), ilIsValidPcxF(), ilIsValidPicF(), ilIsValidPngF(), ilIsValidPnmF(), ilIsValidPsdF(), ilIsValidPspF(), ilIsValidSgiF(), ilIsValidSunF(), ilIsValidTgaF(), ilIsValidTiffF(), ilIsValidTplF(), ilIsValidVtfF(), ilIsValidWdpF(), ilIsValidXpmF(), ilLoadBmpF(), ilLoadCutF(), ilLoadDataF(), ilLoadDcxF(), ilLoadDdsF(), ilLoadDoomF(), ilLoadDoomFlatF(), ilLoadExrF(), ilLoadGifF(), ilLoadHdrF(), ilLoadIcnsF(), ilLoadIconF(), ilLoadIffF(), ilLoadJp2F(), ilLoadJpegF(), ilLoadLifF(), ilLoadMdlF(), ilLoadMngF(), ilLoadPcdF(), ilLoadPcxF(), ilLoadPicF(), ilLoadPixF(), ilLoadPngF(), ilLoadPnmF(), ilLoadPsdF(), ilLoadPspF(), ilLoadPxrF(), ilLoadRawF(), ilLoadSgiF(), ilLoadSun(), ilLoadSunF(), ilLoadTargaF(), ilLoadTiffF(), ilLoadTplF(), ilLoadVtfF(), ilLoadWalF(), ilLoadWbmp(), ilLoadWbmpF(), ilLoadWdpF(), ilLoadXpm(), and ilLoadXpmF().

__FILES_EXTERN void iSetInputLump | ( | const void * | Lump,
|  | ILuint | Size |
| ) |  |  |

Referenced by ilIsValidBmpL(), ilIsValidDcxL(), ilIsValidDdsL(), ilIsValidExrL(), ilIsValidGifL(), ilIsValidHdrL(), ilIsValidIcnsL(), ilIsValidJp2L(), ilIsValidJpegL(), ilIsValidLifL(), ilIsValidMdlL(), ilIsValidPcxL(), ilIsValidPicL(), ilIsValidPngL(), ilIsValidPnmL(), ilIsValidPsdL(), ilIsValidPspL(), ilIsValidSgiL(), ilIsValidSunL(), ilIsValidTgaL(), ilIsValidTiffL(), ilIsValidTplL(), ilIsValidVtfL(), ilIsValidWdpL(), ilIsValidXpmL(), ilLoadBmpL(), ilLoadCutL(), ilLoadDataL(), ilLoadDcxL(), ilLoadDdsL(), ilLoadDoomFlatL(), ilLoadDoomL(), ilLoadExrL(), ilLoadGifL(), ilLoadHdrL(), ilLoadIcnsL(), ilLoadIconL(), ilLoadIffL(), ilLoadJpegL(), ilLoadLifL(), ilLoadMdlL(), ilLoadMngL(), ilLoadPcdL(), ilLoadPcxL(), ilLoadPicL(), ilLoadPixL(), ilLoadPngL(), ilLoadPnmL(), ilLoadPsdL(), ilLoadPspL(), ilLoadPxrL(), ilLoadRawL(), ilLoadSgiL(), ilLoadSunL(), ilLoadTargaL(), ilLoadTiffL(), ilLoadTplL(), ilLoadVtfL(), ilLoadWalL(), ilLoadWbmpL(), ilLoadWdpL(), and ilLoadXpmL().

__FILES_EXTERN void iSetOutputFake | ( | void |  | ) |

Referenced by ilDetermineSize().

__FILES_EXTERN void iSetOutputFile | ( | ILHANDLE | File | ) |

Referenced by ilSaveBmpF(), ilSaveDdsF(), ilSaveExrF(), ilSaveHdrF(), ilSaveJp2F(), ilSaveJpegF(), ilSaveMngF(), ilSavePcxF(), ilSavePngF(), ilSavePnmF(), ilSavePsdF(), ilSaveRawF(), ilSaveSgiF(), ilSaveTargaF(), ilSaveTiffF(), and ilSaveWbmpF().

__FILES_EXTERN void iSetOutputLump | ( | void * | Lump,
|  | ILuint | Size |
| ) |  |  |

Referenced by ilGetDXTCData(), ilSaveBmpL(), ilSaveDdsL(), ilSaveExrL(), ilSaveHdrL(), ilSaveJp2L(), ilSaveJpegL(), ilSaveMngL(), ilSavePcxL(), ilSavePngL(), ilSavePnmL(), ilSavePsdL(), ilSaveRawL(), ilSaveSgiL(), ilSaveTargaL(), ilSaveTiffL(), and ilSaveWbmpL().

__FILES_EXTERN void iUnCache | ( | void |  | ) |

Referenced by iLoadHdrInternal(), ilReadUncompBmp(), iReadNonRleSgi(), iUncompressDcx(), iUncompressPcx(), iUncompressSmall(), and iUncompressTgaData().

__FILES_EXTERN void | ( | ILAPIENTRY * | icloser | ) |

## Variable Documentation

__FILES_EXTERN fEofProc EofProc

Referenced by iEofFile(), and ilSetRead().

__FILES_EXTERN fGetcProc GetcProc

Referenced by iGetcFile(), and ilSetRead().

__FILES_EXTERN ILuint Mode

__FILES_EXTERN ILuint ILuint Number

__FILES_EXTERN fPutcProc PutcProc

Referenced by ilSetWrite(), iPreserveWriteFuncs(), iPutcFile(), and iRestoreWriteFuncs().

__FILES_EXTERN fReadProc ReadProc

Referenced by ilSetRead(), and iReadFile().

__FILES_EXTERN fSeekRProc SeekRProc

Referenced by ilSetRead(), and iSeekRFile().

__FILES_EXTERN fSeekWProc SeekWProc

Referenced by ilSetWrite(), iPreserveWriteFuncs(), iRestoreWriteFuncs(), and iSeekWFile().

__FILES_EXTERN ILuint Size

Referenced by AssembleImage(), iConvertPalette(), ilAddAlpha(), ilAddAlphaKey(), ilConvertBuffer(), ilGetAlpha(), ilLoadHaloPal(), ilModAlpha(), iLoadCutInternal(), iLoadIconInternal(), ilReadAsciiPpm(), ilReadBinaryPpm(), ilRemoveAlpha(), ilSetAlpha(), ilSurfaceToDxtcData(), ilSwapColours(), iluScale2DBilinear_(), iluScale2DLinear_(), iluScale3DLinear_(), iSwitchTypes(), iTargaSize(), iUncompressTgaData(), ReadCMYK(), SkipExtensions(), and XpmGets().

__FILES_EXTERN fTellRProc TellRProc

Referenced by ilSetRead(), and iTellRFile().

__FILES_EXTERN fTellWProc TellWProc

Referenced by ilSetWrite(), iPreserveWriteFuncs(), iRestoreWriteFuncs(), and iTellWFile().

__FILES_EXTERN fWriteProc WriteProc

Referenced by ilSetWrite(), iPreserveWriteFuncs(), iRestoreWriteFuncs(), and iWriteFile().