From the version 0.6.4.3, GLSL Hacker is shipped with a new image loader plugin based on the popular FreeImage library. FreeImage is a powerful library to manage images and supports a lot of formats as well as 128-bit formats (each channel is coded on a float). But GLSL Hacker comes already with a built-in image loader (based on STB). So the question: how to choose the image loader?
This simple question has a simple answer: the set_current_image_codec() function of gh_texture lib:
To use the FreeImage loader, just do:
Now all texture functions that load an image file will use the FreeImage plugin.
To use the default image loader: