Author Topic: FreeImage plugin (GLSL Hacker  (Read 11139 times)

0 Members and 1 Guest are viewing this topic.


  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2910
FreeImage plugin (GLSL Hacker
« on: June 23, 2014, 02:59:16 PM »
From the version, 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:

Code: [Select]

To use the FreeImage loader, just do:
Code: [Select]

Now all texture functions that load an image file will use the FreeImage plugin.

To use the default image loader:
Code: [Select]
« Last Edit: June 23, 2014, 03:07:06 PM by JeGX »