Raylib bindings for mruby, built as an mrbgem with a vendored raylib submodule. This repo includes the C bindings in src/ plus Ruby examples in examples/ and support code in mrblib/.
- Sync submodules:
bin/sync- Build mruby with the raylib gem configuration:
bin/build- Run a Ruby script with the bundled
mrubybinary:
bin/run examples/your_script.rbbin/console: Launchmirbagainst the built mruby.bin/check: Run the repo checks (currentlybin/audit).bin/audit: Detect unused bindings insrc/based onexamples/+mrblib/usage.bin/debug: Runmrubyunder LLDB for native debugging.bin/example <name>: Launch matching mruby + C examples by bare name (for exampleshaders_shadowmap_rendering).
src/: C bindings for raylib.mrblib/: Ruby helpers/classes for the bindings.examples/: Ruby examples using raylib.deps/: Submodules for raylib and mruby.config/: mruby build configuration.
- The build configuration currently includes macOS framework linker flags (see
mrbgem.rake). If you are on another platform, you will need to adjust those flags.
These examples are known to be faulty compared to their respective C examples. Contributions to fix them are welcome.
textures_screen_buffertext_3d_drawingshapes_rlgl_triangle