kolrabi's another Image Library  1.11.0
 All Files Functions Groups Pages
Initialization / Deinitalization

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.
 

Detailed Description

Setting up the IL.

Function Documentation

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.

Deprecated:
Use ilSetMemory(NULL, NULL) instead.
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.

Parameters
mallocFuncThe function to call to allocate memory or NULL to reset to the default.
freeFuncThe function to call to free memory or NULL to reset to the default.