ANNOUNCE: Milfoh image to texture loading library
Hi, since i was getting frustrated by having very good OpenGL/GLUT Haskell bindings but no image loading library i have put together a very small library from SDL_image (and a bare minimun of SDL) to load directly and very easily image files to opengl textures. The download link and the overview of the library are here: http://linuz.sns.it/~monge/wiki/index.php/Milfoh Comments/Suggestions are welcome! Since this was a real pain, i think that something like this (maybe a more polished version) should go into GLUT (as, for instance, ALUT do have some audio file loading facilities). -- Ciao Maurizio "Well we all shine on Like the moon and the stars and the sun" (John Lennon)
Am Dienstag, 9. Mai 2006 14:44 schrieb Maurizio Monge:
[...] Since this was a real pain, i think that something like this (maybe a more polished version) should go into GLUT (as, for instance, ALUT do have some audio file loading facilities).
The design rationale for the OpenGL/GLUT/OpenAL/ALUT packages is that they should exactly mirror the standardize native API behind them in a Haskell-friendly way. GLUT is only a simple, portable GUI for OpenGL-based program (handling windows, menus, callbacks, etc.) and it has no support for loading images, therefore the GLUT package will never have such a facility, either. It might be an interesting project to write a nice Haskell binding to the Developer's Image Library (DevIL, see http://www.imagelib.org/) or Imlib2 (http://www.enlightenment.org/Libraries/Imlib2/). An alternative is to mirror only the design and actually do a re-write of the whole library in Haskell. An IIRC, there is already a Haskell binding for SDL, but I am not so sure about how complete it is and if it is still maintained. Cheers, S.
participants (2)
-
Maurizio Monge -
Sven Panne