sdl
Version, currently master branch1 version
- master branchlatestJun 29, 2025
github.com/ysbaddaden/sdl.cr
Simple DirectMedia Layer bindings (SDL2)
104 stars
4 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
sdl:
github: ysbaddaden/sdl.cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
>= 0.36.1, < 2.0.0- License
- MIT
- Author
- Julien Portalier <julien@portalier.com>
Dependencies
This version declares no dependencies.
README
# 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.
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Jun 29, 2025
- Crystal
>= 0.36.1, < 2.0.0- Indexed
- yes
Dependents
Repository
github.com/ysbaddaden/sdl.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 1