Jérôme Gardou a écrit :
Henri Verbeet a écrit :
2008/8/28 Jérôme Gardou jerome.gardou@gmail.com:
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.
I'm not sure it would be worth it. The only non-trivial formats I see in D3DXIMAGE_FILEFORMAT are JPEG and PNG, and we already link to libjpeg and libpng in other parts of Wine.
If you want, I have an implementation of this same function for png... This one is not commented at all, and need some rework. Get it for comparison.
With the patch...