|DevIL Documentation||Home | Previous | Next|
The ilSetMemory function allows you to override DevIL's memory functions.
ILvoid ilSetMemory( mAlloc AllocFunc, mFree FreeFunc, );
ilSetMemory was created to let DevIL users override the default memory allocation and deallocation functions present in DevIL. This support can be useful if you are using your own optimized memory handler or anything similar.
IL_INVALID_PARAM - Either AllocFunc or FreeFunc is NULL.