raylib-bqn is a binding to raylib, meaning all values and functions defined in raylib are exposed to BQN. If you need documentation on how to use the functions in raylib-bqn, look in raylib. One exception to the raylib documentation is that for BQN I would recommend users to never use relative paths. This is because paths are always relative to raylib.bqn.
Simply import raylib.bqn
, with a left argument of the path to the raylib binary.
Examples:
⟨"path/to/raylib.so"⟩ •Import "path/to/raylib.bqn"
⟨"raylib.dll"⟩ •Import "raylib.bqn"
pathToLib ← •file.RealPath "libraylib.so"
rl ← ⟨pathToLib⟩ •Import "../raylib.bqn"
rl.InitWindow 200‿200‿"hello!"
rl.SetTargetFPS 60
{𝕊:
rl.BeginDrawing⟨⟩
rl.ClearBackground 0‿0‿0‿0
rl.DrawFPS 0‿0
rl.EndDrawing⟨⟩
}•_while_(¬rl.WindowShouldClose∘⟨⟩)@
rl.CloseWindow⟨⟩
raylib.bqn
should always be latest version of raylib. Updates to this repository may lead to updating raylib, but this repository will always be only for major versions of raylib.
raylib.bqn
was generated automatically using c-header-to-bqn-ffi.
rayed-bqn is an attempt at re-designing some of raylib to be more inline with BQN.