Heya,
I've been working on ruby bindings for the DevIL imaging library these last few days and I think i've finally finished the first iteration.
DevIL provides the following functionality for Gosu users:
* lets you load any file format into Gosu, .jpg, .gif, .tga and more
* lets you *save* Gosu::Images (only really useful if you've manipulated them first in some way, using TexPlay for example)
* lets you convert between Gosu::Images and Devil::Images (using #to_devil and #to_gosu)
* lets you take screenshots of the current state of the Gosu Window, manipulate it using Devil, and save to a file (or import back into Gosu if you wish, using #to_gosu)
* Of course DevIL also works independently of Gosu (though that's not relevant to this forum... hehe :)
GEMS YOU NEED:
==========
* The very latest version of TexPlay (0.2.666) (gem install texplay)
* ruby-opengl (gem install ruby-opengl)
INITIAL SETUP:
=========
To use DevIL on *nix sysems (incl. macosx) you should first install the 'devil' library and development packages.
On Debian-based systems:
* you can find the name of these using
apt-cache search devil
. The packages have names such as libdevil-dev, etc
On Gentoo:
* emerge "media-libs/devil"
On Windows:
* simply extract the following zip file into c:\windows\system:
*
http://cloud.github.com/downloads/banister/devil/devil-dlls.zip (it should include devil.dll and ilu.dll)
INSTALLING THE GEM:
============
Once you've done the above it's just a matter of going
* gem install devil
and you're good to go!
Just have a look at the rdoc and the test/ directory for examples on how to use it. Also feel free to ask questions on this thread!
RDOC:
====
http://rdoc.info/projects/banister/devilGITHUB:
====
here's the project page:
http://github.com/banister/devilthanks,
banister