DevIL Documentation Home | Previous | Next

ilSetWrite

The ilSetWrite function changes the writing file functions used by DevIL.


ILvoid ilSetWrite(
  fOpenWProc Open,
  fCloseWProc Close,
  fPutcProc Putc,
  fSeekWProc Seek,
  fTellRProc Tell,
  fWriteProc Write
);

Parameters

Open
Pointer to a function to open a file.
Close
Pointer to a function to close a file.
Putc
Pointer to a function to write one byte to a file.
Seek
Pointer to a function to change position in a file.
Tell
Pointer to a function to report the position in a file.
Write
Pointer to a function to write multiple bytes to a file.

Remarks

ilSetWrite allows you to override the default DevIL saving functions with your own. You are virtually unlimited in how your functions work, as long as they have the same behaviour as DevIL's default saving functions. All the functions work on the ILHANDLE type, which is a just a void pointer.

Error Codes

None

See Also

ilSetRead, ilResetRead, ilResetWrite