Skip to content

salotz/raylib-scopes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scopes-raylib

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.

Installation

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.

With Spack

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.

Development Environment

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

About

Raylib wrapper for the Scopes language

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published