raylib-pas is a header translation of the Raylib Game Development Library for the FreePascal Project.
You can execute make
on GNU+Linux, macOS and Windows.
You will need to source raylib for your platform.
We assume you linked or copied the raylib
shared(*.so,*.dylib,*.dll
) or static(*.a
) library for your platform into ./bin
.
If you want to use the static library use make
as follow:
make RAYLIB_LIBTYPE=STATIC
Or to build binaries you can debug:
make DEBUG=TRUE
If you use the shared library you must specify where to source the libraylib.so
file.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. # adjust the export to search for the .so in the local path
If you want to link to the static library you must copy libglfw3.a
and libraylib.a
into ./bin
.
To use make
it must be in your %PATH%
. fpc
includes make.exe
in the bin directory.
set PATH=%PATH%;C:\fpc\3.0.4\bin\x86_64-win64
Try some of the ported c to fpc examples in examples/core
, examples/models
, examples/audio
etc.
Thanks to drezgames/raylib-pascal for the examples. Originally delphi, now fpc.
- Eventually we will be doing some work to compile the project with static linking. Hopefully this will allow for more cross-platform compilation of raylib-pas. Mainly for Android and eventually iOS when raylib supports that.
- Add Android and WebAssembly support.
- Port/Create more examples and games.
- Include Binary Distribution of "Supported" Raylib Shared Libraries with this binding.