A complete header translation (binding) of the raylib 6.0 to Pascal. Without any funky helper functions for memory alignment issues. Inspired and partially based on the drezgames/raylib-pascal binding, however a little cleaner and more recent, with FPC 3.2.0 and up support.
177
stars
776
commits
Pascal
primary language
Aug 9, 2026
updated
ray4laz is a header translation of the raylib game development Library for the Lazarus and Delphi.
raylib is a simple and easy-to-use library to enjoy videogames programming.
raylib is highly inspired by Borland BGI graphics lib and by XNA framework and it's specially well suited for prototyping, tooling, graphical applications, embedded systems and education.
| Header | Supported |
|---|---|
| raylib.h | :heavy_check_mark: |
| raymath.h | :heavy_check_mark: |
| rlgl.h | :heavy_check_mark: |
| raygui.h | :heavy_check_mark: |
| r3d.h* | :heavy_check_mark: |
| raygizmo.h* | :heavy_check_mark: |
| raymedia* | :heavy_check_mark: |
* extension library for raylib from third-party developers.
| OS | Supported |
|---|---|
| MacOS* | :heavy_check_mark: |
| Windows | :heavy_check_mark: |
| Linux | :heavy_check_mark: |
| Haiku | :heavy_check_mark: |
* to compile examples for the Apple m-series, see the m-series readme or watch this video
raylib binary releases for Windows, Linux and macOS are available at the Github Releases page,and also in the ray4laz/libs folder.
raylib Wiki contains detailed instructions on building and usage on multiple platforms.
You can view the installation for Delphi in the ray4laz Wiki.
select the package menu, open the network package manager.

select ray4laz package and install.

create a new project (Ray Simple Project).

enjoy !!!

clone this repository, then use 'fpc-wrapper.sh' or 'fpc-wrapper.bat' as your compiler. this script automatically feeds fpc with the necessary arguments.
The Silver Pascal Coder
RetroNick's Programming Channel
Pascal
100.0%
A complete header translation (binding) of the raylib 6.0 to Pascal. Without any funky helper functions for memory alignment issues. Inspired and partially based on the drezgames/raylib-pascal binding, however a little cleaner and more recent, with FPC 3.2.0 and up support.
177
stars
776
commits
Pascal
primary language
Aug 9, 2026
updated
ray4laz is a header translation of the raylib game development Library for the Lazarus and Delphi.
raylib is a simple and easy-to-use library to enjoy videogames programming.
raylib is highly inspired by Borland BGI graphics lib and by XNA framework and it's specially well suited for prototyping, tooling, graphical applications, embedded systems and education.
| Header | Supported |
|---|---|
| raylib.h | :heavy_check_mark: |
| raymath.h | :heavy_check_mark: |
| rlgl.h | :heavy_check_mark: |
| raygui.h | :heavy_check_mark: |
| r3d.h* | :heavy_check_mark: |
| raygizmo.h* | :heavy_check_mark: |
| raymedia* | :heavy_check_mark: |
* extension library for raylib from third-party developers.
| OS | Supported |
|---|---|
| MacOS* | :heavy_check_mark: |
| Windows | :heavy_check_mark: |
| Linux | :heavy_check_mark: |
| Haiku | :heavy_check_mark: |
* to compile examples for the Apple m-series, see the m-series readme or watch this video
raylib binary releases for Windows, Linux and macOS are available at the Github Releases page,and also in the ray4laz/libs folder.
raylib Wiki contains detailed instructions on building and usage on multiple platforms.
You can view the installation for Delphi in the ray4laz Wiki.
select the package menu, open the network package manager.

select ray4laz package and install.

create a new project (Ray Simple Project).

enjoy !!!

clone this repository, then use 'fpc-wrapper.sh' or 'fpc-wrapper.bat' as your compiler. this script automatically feeds fpc with the necessary arguments.
The Silver Pascal Coder
RetroNick's Programming Channel
Pascal
100.0%