DevIL Documentation | Home | Previous | Next |
The ilSetRead function changes the reading file functions used by DevIL.
ILvoid ilSetRead(
fOpenRProc Open,
fCloseRProc Close,
fEofProc Eof,
fGetcProc Getc,
fReadProc Read,
fSeekRProc Seek,
fTellRProc Tell
);
ilSetRead was primarily designed to allow languages other than C/C++ access to DevIL's file-reading functions, since other languages do not use stdio.h's FILE* struct. This function can also double usefully in instances where filetypes other than FILE* are used, such as Windows file handles and C++ istreams. Simply provide an alternative to each of the functions needed by DevIL. The "special" datatype ILHANDLE is passed to these functions when used, so any internal datatype used by the differing language (or file handle) can be used.
None
ilSetWrite, ilResetRead, ilResetWrite