<div dir="ltr">It appears this mail did not get in, so I resend it...<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Jérôme Gardou</b> <span dir="ltr">&lt;<a href="mailto:jerome.gardou@gmail.com">jerome.gardou@gmail.com</a>&gt;</span><br>
Date: 2008/8/26<br>Subject: Implementing textures functions of d3dx using an extern library.<br>To: <a href="mailto:wine-devel@winehq.org">wine-devel@winehq.org</a><br><br><br><div dir="ltr">D3DX supports a wide range of file types for textures. Instead of rewriting everything from scratch, the best would certainly be to use some image processing library to handle them. As a bonus, this would allow lighter code.<br>

<br>Some of those library are :<br>SDL_Image : easy to use, but loading an image using a SDL_Surface is quite heavy. Moreover, the files supported are not enough for d3dx.<br>MagickWand/MagickCore, the libraries on which imagemagick is based : Hard to use, and very heavy. Supports every format thet d3dx supports.<br>

FreeImage : Quite easy to use, the only files not supported are DIB and PFM... Not so widely represented. I had to recompile it, as packages for it are not available for 32 bits. (I use a 64 bits ubuntu system).<br><br>Here is an implementation of D3DXGetImageInfoFromFileInMemory using FreeImage.<br>

<br>Suggestions and comments are welcomed.<br><br>PS : Please CC me your potential answers, as I&#39;m not a subscriber of this list.<br></div>
</div><br></div>