Semi-automatically generated Raylib bindings for Racket.
raylib/2d/unsafe
(re-)exports all of raylib.h
which is relevant
for 2D rendering and games, and is the primary target for this software.
For more details on excluded functions, consult the documentation.
All functions and types from
raylib.h
have definitions in raylib/generated/unsafe
. Most of these should
work, but there is at least one function for which this is impossible.
Functions in
raymath.h
have been converted to Racket manually, so they may shift out of line
with the version linked into Raylib. They were written to match those
in the Raylib 4.0.0 release.
Racket examples can be found in the examples directory, C examples can be found in Raylib's examples directory.
To install this package:
raco pkg install raylib
git clone git@github.com:eutro/racket-raylib.git
cd racket-raylib
raco pkg install
If you're on a common platform, then it should be enough to just install this package without installing Raylib separately. However, if you are not so lucky, you may need to build and install Raylib globally.
This software is distributed under the MIT license and the Apache version 2.0 license, at your option. See LICENSE-MIT and LICENSE-APACHE for details.