DevIL Documentation Home | Previous | Next

ilSetMemory

The ilSetMemory function allows you to override DevIL's memory functions.


ILvoid ilSetMemory(
  mAlloc AllocFunc,
  mFree FreeFunc,
);

Parameters

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

Remarks

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.

Error Codes

IL_INVALID_PARAM - Either AllocFunc or FreeFunc is NULL.

See Also