Skip to content

Brian-ED/raylib-bqn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

raylib-bqn, a raylib binding for BQN

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.

Using in a bqn script

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"

Example

pathToLib•file.RealPath "libraylib.so"
rl ← ⟨pathToLib•Import "../raylib.bqn"

rl.InitWindow 200200"hello!"
rl.SetTargetFPS 60
{𝕊:
  rl.BeginDrawing⟨⟩
    rl.ClearBackground 0000
    rl.DrawFPS 00
  rl.EndDrawing⟨⟩
}•_while_(¬rl.WindowShouldClose⟨⟩)@

rl.CloseWindow⟨⟩

Extra information

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.

About

raylib-bqn, a raylib binding for BQN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages