Skip to content

ashn-dot-dev/raylib-sunder

Repository files navigation

raylib-sunder

Sunder bindings for raylib.

Currently supports raylib version 5.5.

Build and Install

Clone the raylib repository into the directory of your choice (in this case ~/sources/raylib), and checkout the supported raylib release version:

git clone https://github.com/raysan5/raylib.git ~/sources/raylib
(cd ~/sources/raylib && git checkout 5.5)

Set RAYLIB_DIRECTORY=/your/path/to/raylib and run make build build-web to generate the raylib.sunder and raymath.sunder bindings as well as build the PLATFORM=PLATFORM_DESKTOP library (libraylib.a) and the PLATFORM=PLATFORM_WEB library (libraylib-web.a):

make RAYLIB_DIRECTORY=~/sources/raylib build build-web

Install the raylib sunder bindings, raylib libraries, and the raylib-config utility to $SUNDER_HOME/lib/raylib:

make RAYLIB_DIRECTORY=~/sources/raylib install install-web

Building the Example Program (Desktop)

SUNDER_CFLAGS="$(${SUNDER_HOME}/lib/raylib/raylib-config desktop)" sunder-compile -o example examples/example.sunder

Building the Example Program (HTML 5)

Compiling for the web (HTML 5) requires the Emscripten toolchain (wiki entry).

SUNDER_ARCH=wasm32 SUNDER_HOST=emscripten SUNDER_CC=emcc SUNDER_CFLAGS="$(${SUNDER_HOME}/lib/raylib/raylib-config web) -sSINGLE_FILE=1 --shell-file emscripten-shell.html" sunder-compile -o example.html examples/example.sunder

License

All content in this repository is licensed under the Zero-Clause BSD license.

See LICENSE for more information.

About

Sunder bindings for raylib

Topics

Resources

License

Stars

Watchers

Forks