I use this function to load my bitmaps. It works fine and everything since it can also load run length encoded bitmaps.
The problem or the fear I got is that I am not sure where the memory is allocated and for that manner if I need to delete it. Fearing the memory leak I call delete[] ptrAux->data and then delete ptrAux. What bugs me is that maybe it is not that good that I delete the memory if it would be deleted at some point by glaux. Second problem is that if I am not mistaken an application should not delete memory allocated in another DLL the other dll being glaux.
All that being said I have 2 choices:
Ignore the problem like a dummy and continue deleting the data using delete or free while I am not sure at all that this is ok or to write or find a bmp, tif or whatever file format loader.
Keep in mind that I am really satisfied with the functionnality of auxDIBImageLoad since it works fine with all the versions of bmps and that bmps are supported with my version of 3d max. So if someone knows how auxDIBImageLoad works in regards to it’s memory I am all ears to earing about it.
[This message has been edited by Fiante Endurcie (edited 11-30-2000).]