github.com/SleepingInsomniac/sdl3.cr

SDL3 bindings for crystal

6 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  sdl3:
    github: SleepingInsomniac/sdl3.cr
    version: ~> 0.2.3

Then run:

shards install

shard.yml

Crystal
>= 1.18.2
License
MIT
Author
Alex Clink

Dependencies

This version declares no dependencies.

README

SDL3 bindings for Crystal

Installation

  1. Install sdl3
brew install sdl3
brew install sdl3_image # optional
brew install sdl3_ttf # optional
  1. Add the dependency to your shard.yml:
dependencies:
 sdl3:
   github: sleepinginsomniac/sdl3.cr
  1. Run shards install

Usage

require "sdl3"

Check out the examples which mirror the examples from https://github.com/libsdl-org/SDL/tree/main/examples. Feel free to open a pull request with any that are not yet implemented.

Contributing

  1. Fork it (https://github.com/sleepinginsomniac/sdl3.cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors