DevIL in CVS

Started by CaptainJester, October 23, 2004, 02:09:25

Previous topic - Next topic

CaptainJester

DevIL is now in CVS.  I have placed an example of how to used it under the Sample Code section in the WiKi.  Currently only the Windows platform is supported.  Could somone add the DevIL binaries for Linux and Mac?

Matzon:  If you want to review the code, I'd appreciate any comments.

Cas: JPEGs are supported.  The way it is set up, we have full support of all the images the DevIL supports.  The loading routine determines the type by the extension.  You can however make modifications to remove support for any types you don't want.(If I understood it correctly.)
The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)
8)

Matzon

QuoteCould somone add the DevIL binaries for Linux and Mac?
I have removed the binary for win32 in the platform build dir. The DevIL binary should either be distributed alongside the actual distribution or retrieved by a developer himself. I have managed to pack the DevIL.dll from 844 kB to ~220 kB using UPX.

I have checked the code and apart from some fixups it all looks fine.

* Changed IL.create to always call ilInit, since it can't be used without anyway
* Changed the GetDirectBufferAddress to use safeGetBufferAddress
* Fixed a memory leak. GetStringUTFChars must always be accompanied by a ReleaseStringUTFChars
* Cleaned up the build files. I like your new way of building.
* Removed autogenerated header from cvs

I have only tested that BasicTest works - which it does.

The only thing that needs to be fixed now (besides adding a gazillion methods :)) is to turn it into a dynamic loading binding - that is write all the ext*_InitializeClass stuff. I also need to do this for fmod3 - though... hmm come to think of it - why do we need this elias? - you can't call non existing methods in fmod3 nor DevIL... you would just get a UnsatisfiedLinkError if you call an unimplmented method anyway...