Skip to content

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.

License

Notifications You must be signed in to change notification settings

JudgeGroovyman/ray4laz

 
 

Repository files navigation

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

  • 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

Header Supported
raylib.h ✔️
raymath.h ✔️
rlgl.h ✔️
raygui.h ✔️

tested platforms

OS Supported
MacOS* ✔️
Windows ✔️
Linux ✔️
Haiku ✔️

*to compile examples for the Apple m-series, 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

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 85.0%
  • Pascal 9.0%
  • GLSL 5.8%
  • Other 0.2%