Fork me on GitHub

Ruby-SDL-FFI by jacius

About

Ruby-SDL-FFI is a low-level binding to SDL and related libraries using Ruby-FFI. It provides very basic access to SDL from Ruby without the need for a compiled C wrapper. It aims to be platform and Ruby implementation independent.

Ruby-SDL-FFI does not attempt to provide any high-level functionality, only to mirror the standard SDL interface. For higher-level functionality, you should use other libraries (Rubygame, Gosu, etc.).

Caveats

Ruby-SDL-FFI is still in very early development stages. That means:

As such, this library is currently for the adventurous only. If you are not willing to continuously update your code to match the new API, then you should wait until Ruby-SDL-FFI is more mature and stable (i.e. version 1.0+).

Dependencies

Optional:

Ruby-SDL-FFI may work with older versions, but hasn't been tried on them.

So far, Ruby-SDL-FFI has only been tested on 32-bit Linux with the standard Ruby implementation (aka MRI) version 1.8.6. However, with a few tweaks it should work on any system with compatible FFI functionality.

License

Ruby-SDL-FFI is licensed under the following terms (the "MIT License"):

Copyright © 2009 John Croisant

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Download

You can download this project in either zip or tar formats.

You can also clone the project with Git by running:

$ git clone git://github.com/jacius/ruby-sdl-ffi