I couldn’t get DevIL or corona to work on linux (the current builds seem to be broken?) so I’m trying to use freeimage. Is there a better image library to use?
I have used glReadPixels to create a GLvoid *imageData, and all I want to do is save it to a bmp file.
This looks like the function I want - is it?
FIBITMAP *FreeImage_ConvertFromRawBits(imageData, WIDTH, HEIGHT, 3, 8, unsigned red_mask, unsigned green_mask, unsigned blue_mask, false);
What do I pass as “red_mask” etc? The documentation is terribly unclear.