[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haskell
Subject:    Re: [Haskell] ANNOUNCE: Milfoh image to texture loading library
From:       "Maurizio Monge" <maurizio.monge () gmail ! com>
Date:       2006-05-14 16:30:35
Message-ID: e4c519350605140930t6bce6educc729266f4c58634 () mail ! gmail ! com
[Download RAW message or body]

>
> The design rationale for the OpenGL/GLUT/OpenAL/ALUT packages is that the=
y
> should exactly mirror the standardize native API behind them in a
> Haskell-friendly way. GLUT is only a simple, portable GUI for OpenGL-base=
d
> program (handling windows, menus, callbacks, etc.) and it has no support =
for
> loading images, therefore the GLUT package will never have such a facilit=
y,
> either.

Sure, only the GLUT api should be mirrored, but i was thinking that since A=
LUT
do have a few facilities to load audio files, why should not have GLUT itse=
lf
some facility to load images?
BTW, this was just a (slightly offtopic) personal consideration.

>
> 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 mi=
rror
> only the design and actually do a re-write of the whole library in Haskel=
l.

And imagemagick would be another possibility too.
Sure, but this is problably is quite a bit of work (even just a binding, wi=
thout
rewriting all funcionalities), i just wrote a bare minimum library to creat=
e
a texture from an image in an opengl program.
i think it will be useful for instance if you want to write a program
using just
GLUT, to be able to load some texture, because you can just incude it.
That's it, nothing more and nothing less.

>
> 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.

hSDL is not complete, most important for me was that the OpenGL part and
the SDL bindings are not yet done.
Of course a more definitive solution would be to complete the hSDL bindings
(BTW i don't know if it is still maintained, last release is of 2005 April =
12),
as SDL is a much more general purpose library than GLUT.

--
Ciao
Maurizio

"Well we all shine on
Like the moon and the stars and the sun" (John Lennon)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic