DevIL Documentation Previous | IL | Next

 

ilSetMemory

 

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.

 

ILvoid ilSetMemory(
  mAlloc AllocFunc, mFree FreeFunc );


Parameters

 
AllocFunc
Specifies a function to override DevIL's allocation function.
FreeFunc
Specifies a function to override DevIL's deallocation function.


Errors

 
IL_INVALID_PARAM
Either AllocFunc or FreeFunc is NULL.