RepositoryPascal
GuvaCode

GuvaCode/ray4laz

A complete header translation (binding) of the raylib 6.2 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.

183stars
30forks
1issues
4views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: lazarus-ide

#1 Repository of the week

1
TINIX TRENDING·Topic: raylib

#1 Repository of the week

1
TINIX TRENDING·Topic: pascal-binding

#1 Repository of the week

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.


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

  • NO external dependencies, all required libraries are bundled into raylib
  • Multiple platforms supported: Windows, Linux, MacOS, RPI, Android, HTML5... and more!
  • Written in plain C code (C99) using PascalCase/camelCase notation
  • Hardware accelerated with OpenGL (1.1, 2.1, 3.3, 4.3 or ES 2.0)
  • Unique OpenGL abstraction layer (usable as standalone module): rlgl
  • Multiple Fonts formats supported (TTF, Image fonts, AngelCode fonts)
  • Multiple texture formats supported, including compressed formats (DXT, ETC, ASTC)
  • Full 3D support, including 3D Shapes, Models, Billboards, Heightmaps and more!
  • Flexible Materials system, supporting classic maps and PBR maps
  • Animated 3D models supported (skeletal bones animation) (IQM, M3D, glTF)
  • Shaders support, including model and postprocessing shaders.
  • Powerful math module for Vector, Matrix and Quaternion operations: raymath
  • Audio loading and playing with streaming support (WAV, QOA, OGG, MP3, FLAC, XM, MOD)
  • VR stereo rendering support with configurable HMD device parameters
  • Huge examples collection with +120 code examples!
  • Bindings to +60 programming languages!
  • Free and open source.

supported headers

HeaderSupported
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.

tested platforms

OSSupported
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,and also in the ray4laz/libs folder.

building raylib on multiple platforms

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

installation in Delphi ide.

You can view the installation for Delphi in the ray4laz Wiki.

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.

tutorials using raylib in pascal.

The Silver Pascal Coder

RetroNick's Programming Channel

usage examples from other developers

huge collection with +180 code examples for ray4laz package.

contributors

Similar Projects

Discover other similar projects and AI models.

RepositoryPascal
GerryFerdinandus/bittorrent-tracker-editor

Software for add or remove tracker from torrent files.

577
Dec 1, 2026
RepositoryPascal
winddriver/Delphi-Cross-Socket

Delphi cross platform socket library

477
Nov 2, 2026
RepositoryPascal
joaopauloschuler/neural-api

CAI NEURAL API - Pascal based deep learning neural network API optimized for AVX, AVX2 and AVX512 instruction sets plus OpenCL capable devices including AMD, Intel and NVIDIA.

468
Nov 29, 2026
RepositoryPascal
risoflora/brookfreepascal

The perfect Free Pascal framework for your web applications.

174
Nov 9, 2026
RepositoryPascal
castle-engine/castle-engine

Cross-platform (desktop, mobile, console, web) 3D and 2D game engine. Powerful visual editor. Support for glTF, X3D, IFC and more. Fast clean code using modern Pascal. Free and open-source.

1.3k
Nov 26, 2026
RepositoryPascal
synopse/mORMot2

The Ultimate OpenSource RTL / ToolBox for Delphi and FreePascal

738
Nov 26, 2026
RepositoryPascal
salvadordf/WebView4Delphi

WebView4Delphi is an open source project created by Salvador Díaz Fau to embed Edge/Chromium-based browsers in applications made with Delphi or Lazarus/FPC for Windows.

420
Nov 23, 2026
RepositoryPascal
zamtmn/zcad

Simple CAD program

342
Nov 26, 2026
RepositoryPascal
Villavu/Simba

Simba is a program used to repeat certain (complicated) tasks. Typically these tasks involve using the mouse and keyboard. Simba is programmable, which means you can design your own logic and steps that Simba will follow, based upon certain input such as colors on the screen.

279
Oct 17, 2026