Implementing textures functions of d3dx using an extern library.

Jérôme Gardou jerome.gardou at gmail.com
Thu Aug 28 16:20:10 CDT 2008


It appears this mail did not get in, so I resend it...

---------- Forwarded message ----------
From: Jérôme Gardou <jerome.gardou at gmail.com>
Date: 2008/8/26
Subject: Implementing textures functions of d3dx using an extern library.
To: wine-devel at winehq.org


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.

Some of those library are :
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.
MagickWand/MagickCore, the libraries on which imagemagick is based : Hard to
use, and very heavy. Supports every format thet d3dx supports.
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).

Here is an implementation of D3DXGetImageInfoFromFileInMemory using
FreeImage.

Suggestions and comments are welcomed.

PS : Please CC me your potential answers, as I'm not a subscriber of this
list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-devel/attachments/20080828/b442b5a9/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Implements-D3DXGetImageInfoFromFileInMemory-using-th.patch
Type: text/x-diff
Size: 14905 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20080828/b442b5a9/attachment-0001.patch 


More information about the wine-devel mailing list