GuvaCode / ray4laz

A complete header translation (binding) of the raylib 5.5 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.
https://www.raylib.com/
zlib License
108 stars 21 forks source link
cross-platform enjoy-videogames-programming freepascal game-dev game-development game-engine header-translation lazarus lazarus-ide lazarus-package linux macos pacal-langauge pascal pascal-binding raylib windows

ray4laz is a header translation of the raylib game development Library for the Lazarus project.


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.


NOTE for ADVENTURERS: raylib is a programming library to enjoy videogames programming; no fancy interface, no visual helpers, no auto-debugging... just coding in the most pure spartan-programmers way.



features

supported headers

Header Supported
raylib.h :heavy_check_mark:
raymath.h :heavy_check_mark:
rlgl.h :heavy_check_mark:
raygui.h :heavy_check_mark:

tested platforms

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

build and installation raylib

raylib binary releases for Windows, Linux and macOS are available at the Github Releases page.

building raylib on multiple platforms

raylib Wiki contains detailed instructions on building and usage on multiple platforms.

installation in lazarus ide.

select the package menu, open the network package manager.

select ray4laz package and install.

create a new project (Ray Simple Project).

enjoy !!!

manual installation and use without lazarus ide

clone this repository, then use 'fpc-wrapper.sh' or 'fpc-wrapper.bat' as your compiler. this script automatically feeds fpc with the necessary arguments.

usage examples from other developers

other examples are rewritten from other programming languages

Ray4LazExample

contributors