kolrabi's another Image Library
1.11.0
|
Setting up the IL. More...
Functions | |
void ILAPIENTRY | ilInit (void) |
Initialize the image library. More... | |
void ILAPIENTRY | ilResetMemory () |
Set memory allocation/deallocation functions back to default. More... | |
void ILAPIENTRY | ilSetMemory (mAlloc mallocFunc, mFree freeFunc) |
Sets the memory allocation and deallocation functions. More... | |
void ILAPIENTRY | ilShutDown (void) |
Shuts down the image library. | |
Setting up the IL.
void ILAPIENTRY ilInit | ( | void | ) |
Initialize the image library.
This must be called before calling any other IL functions or their behaviour is undefined.
void ILAPIENTRY ilResetMemory | ( | ) |
Set memory allocation/deallocation functions back to default.
void ILAPIENTRY ilSetMemory | ( | mAlloc | mallocFunc, |
mFree | freeFunc | ||
) |
Sets the memory allocation and deallocation functions.
When changing the freeFunc all allocated memory up to that point will still be freed by the function that was set when that memory was allocated. This means the correct function will be called for every allocated object.
mallocFunc | The function to call to allocate memory or NULL to reset to the default. |
freeFunc | The function to call to free memory or NULL to reset to the default. |