SDL2 bindings for Crystal
Switch branches/tags
Nothing to show
Clone or download
joestraitiff and ysbaddaden Fix: Surface#fill (#25)
Modified Surface#fill to pass a nil instead of a rect when it's nil.

Removed unnecessary checking for alpha (the color function does this already).
Latest commit 21ae9e3 Jul 17, 2018
Permalink
Failed to load latest commit information.
samples Add support for SDL2_mixer Jun 13, 2017
src Fix: Surface#fill (#25) Jul 17, 2018
.gitignore Ignore samples data (#4) Feb 24, 2017
README.md Add support for SDL2_mixer Jun 13, 2017
shard.yml Add support for SDL2_mixer Jun 13, 2017

README.md

SDL2 bindings for Crystal

Write SDL2 games in Crystal. Support for desktop applications for now, but Android shouldn't be hard to achieve.

Most of the bindings have been implemented, though most haven't been verified, yet. Please see the samples directory for examples, ported from the tutorials found at http://lazyfoo.net/tutorials/SDL/index.php. You are welcome to port more samples, and the necessary corrections!

Requirements

  • SDL2 is required;
  • Optional bindings for SDL2_Mixer, SDL2_Image and SDL2_TTF;
  • Crystal > 0.22.0 is required for SDL2_Mixer to work correctly.