Bindings of Raylib for the Scopes programming language.
This is an incredibly thin wrapper as such and you can basically use the Raylib C-API with Scopes notation. Some of the naming prefixes have been scrubbed to make calling things less verbose.
There are a few macros added for "begin-end" type constructs that you can see in use in the examples, but you don't need to use them.
The module is under src/raylib
. You can copy this subtree into your
project and then add it to the package.path
in your Scopes
_project.sc
file.
This module is available as the scopes-raylib
package in the
snailpacks repository. This will pull in the necessary dependencies
including Scopes.
spack install scopes-raylib
See the snailpacks documentation for more best practices of installing.
We use Spack to install dependencies. First install Spack.
Then you'll need our custom repo of build recipes:
mkdir -p `/.spack/repos
git clone [email protected]:salotz/snailpacks.git `/.spack/repos/snailpacks
spack repo add `/resources/spack-repos/snailpacks
Then you need to create an environment in this folder that will contain the headers and libraries etc.
spack env create -d .
Activate the environment (i.e. set the environment variables appropriately) and install the packages:
spacktivate .
spack install
To exit the environment (i.e. unset the env variables):
despacktivate